ブロック?


[1, 2, 3].each {|i| puts i}
[1, 2, 3].collect {|i| -i} #=> [-1, -2, -3]

(for-each display '(1 2 3))
(map - '(1 2 3)) ;=> (-1 -2 -3)