Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A Rubyist walks into an Erlang

Name: Anonymous 2013-06-10 17:13

http://erlang.org/pipermail/erlang-questions/2011-July/060103.html
Follow the thread with "next message" to learn of a man's drive to make Erlang RUBY ELEGANT.

and then the aftermath:
http://erlang.org/pipermail/erlang-questions/2011-July/060229.html

Name: Anonymous 2013-06-11 15:59

Symta:  [1 2 3 4 5] map: N => N * 2
Ruby:   [1,2,3,4,5].map do |n| n * 2 end
Python: [n * 2 for n in [1, 2, 3, 4, 5]]
Lisp:   (map (lambda (n) (* n 2)) '(1 2 3 4 5))
Erlang: lists:map(fun(N) -> N * 2 end, [1,2,3,4,5]).
C#:     (new List<int>() {1, 2, 3, 4, 5}).ConvertAll(n => n * 2);

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List