Create a gist now

Instantly share code, notes, and snippets.

learn you a haskell
[x*2 | x <- [1..10]]
--> [2,4,6,8,10,12,14,16,18,20]
(1..10).map{|i| i*2}
#=> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
var tuple = new Tuple<int, string>(42, "meaning of life")
(42, "meaning of life")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment