Instantly share code, notes, and snippets.
(mapcar* (lambda (x) (* x x)) '( 1 2 3 4))
[1,2,3,4,5].colllect {|x| x*x} def double (x) x * 2 end