[erlang-questions] Tried this... Thought it interesting... But it didn't work.
Tue Sep 1 17:30:31 CEST 2015
So, I ran across this tidbit in the Erlang cybersphere:
List Comprehension without generators
1> Y = 3.
2> Z = [X || Y > 2].
* 1: variable 'X' is unbound
OK.So I tried...
[ X || Y > 2].
Error: variable 'X' is unbound
Waah...is someone pulling my leg?
4> Z = [X || X <- [Y >2]].
But it seems rather pointless.
I didn't check to see if the original post was dated circa April 1.
More information about the erlang-questions