List Incomprehensions
Brujo Benavides
103
This can be quite useful for replacing cases with boolean outputs, if we are not concerned about returning anything for false.
function() ->
case boolean_expression of
true -> call_my_function();
false -> ok
end.
[call_my_function()||boolean_expression]
I think this can be pretty useful at times….