Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Related Rants
Found something like this on the code today…
my_fun() ->
ANestedList = [["Just one element"]],
IndividualResults =
[change_stuff(InnerList)
|| InnerList <- ANestedList],
lists:append(IndividualResults).
Seriously, previous dev? I understand LCs are _cool_, but… really???
---
For non-erlangers: that function can be written as:
my_fun() ->
change_stuff(["single element"]).
undefined
erlang