WTF Array Programming


Details
Pick 6 random numbers 1-40, without repeats, and display them in ascending order.
What would a solution look like in your favourite language? Or your least favourite? Anything like this: x[⍋x←6?40] ??
This kind of code snippet and more crazy-looking solutions to complex Project Euler puzzles have really grabbed my attention. The above is APL and it belongs to a family of languages collectively called "Array Oriented". I'm going to give an intro to a language called J (http://www.jsoftware.com/) which is a modern descendent of APL that, importantly, doesn't need a special keyboard! We'll see what it looks & feels like, how to read it, and IMPORTANT we will write some ourselves!
So, bring a laptop, read up in advance if you're keen, or just come along and lets learn something cool. See you there,
Matthew

WTF Array Programming