2

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"]).

Comments
Add Comment