Skip to content

Instantly share code, notes, and snippets.

@formido
Created February 11, 2011 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save formido/822705 to your computer and use it in GitHub Desktop.
Save formido/822705 to your computer and use it in GitHub Desktop.
list comprehension to flatten and process a list of lists
%% http://stackoverflow.com/questions/4969113/erlang-map-nested-list
List = [["asd", "ddsa"], ["ASD", "ASD"], ["FH", "SDFDF]].
[ F(String) || SubList <- List, String <- SubList ].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment