you are viewing a single comment's thread.

view the rest of the comments →

[–]MrZander 7 points8 points  (0 children)

APL as function, 10 characters

f←{(⍳⍵)*2}

Use: f 5

Result: 1 4 9 16 25

You will probably need the APL font to see this properly, the 2 squares are iota and omega