Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
querulous
· 13y ago · 0 comments
[ fun(N) -> N + 1 end || N <- [1,2] ]
Comments
[–]
501
13y ago
That will produce a list of 2 funs. I think you meant:
[ N + 1 || N <- [1,2] ].
[–]
jerf
13y ago
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.