Ways of functional programming ------------------------------------------ Description: square a range of numerics Haskell: [x ^ 2 | x <- [1..5]] Python: [x ** 2 for x in range(1,6)] Perl: map {$_ ** 2} (1..5) Ruby: (1..5).to_a.map {|x| x ** 2}