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 0:52

Erlang:
lists:map(fun(N) ->
        N * 2
    end, [1,2,3,4,5]).


Ruby:
[1,2,3,4,5].map do |n|
        n * 2
    end


Python:
[n * 2 for n in [1, 2, 3, 4, 5]]

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