Hacker News new | ask | show | jobs
by querulous 4764 days ago
[ fun(N) -> N + 1 end || N <- [1,2] ]
2 comments

That will produce a list of 2 funs. I think you meant:

    [ N + 1 || N <- [1,2] ].
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.