public
Created

learn you a haskell

  • Download Gist
1.hs
Haskell
1 2
[x*2 | x <- [1..10]]
--> [2,4,6,8,10,12,14,16,18,20]
1.rb
Ruby
1 2
(1..10).map{|i| i*2}
#=> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
2.cs
C#
1
var tuple = new Tuple<int, string>(42, "meaning of life")
2.hs
Haskell
1
(42, "meaning of life")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.