News for hackers. Stuff that matters.
Re:A Week with Elixir by querulous on Friday May 31, 2013 @04:51PM (#5801315)
[ fun(N) -> N + 1 end || N <- [1,2] ]
Re:A Week with Elixir by 501 on Friday May 31, 2013 @06:10PM (#5801609)
That will produce a list of 2 funs. I think you meant:

    [ N + 1 || N <- [1,2] ].
Re:A Week with Elixir by jerf on Saturday June 01, 2013 @02:44PM (#5805318)
I picked that as a simple example. Yes, I suppose I should have used a fold, or any of the other "everything else" functions that don't have syntax support. My point still stands.