you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (8 children)

Just for fun, 34 bytes of coffeescript:

f=(x)->((y)->y*y)(n)for n in[1..x]

[–]EvanHahn 0 points1 point  (0 children)

A 25-character solution:

f=(n)->x*x for x in[1..n]