-
-
Notifications
You must be signed in to change notification settings - Fork 916
Closed
Description
As a good Erlanger, I like the possibility to perform this kind of action. I know that it's like a shortcut for something we could do with list.map/2 and list.filter/2, but I think that's very expressive and convenient.
It could be implemented in the Erlang way:
[ car || car <- cars, car.country == "DE" ]
or it could be implemented in the Elixir (and almost Python) way:
for car <- cars if car.country == "DE" { car }
what do you think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels