Y
Hacker News
new
|
ask
|
show
|
jobs
by
querulous
4764 days ago
[ fun(N) -> N + 1 end || N <- [1,2] ]
2 comments
501
4764 days ago
That will produce a list of 2 funs. I think you meant:
[ N + 1 || N <- [1,2] ].
link
jerf
4763 days 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.
link