Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 256 Bytes
-module(list_comprehension).
-export([increment/1, soupless/1]).
increment(List) ->
Incremented = [X + 1 || X <- List],
io:format("~p~n", [Incremented]).
soupless(List) ->
Soupless = [X || X <- List, X =/= "soup"],
io:format("~p~n",[Soupless]).
Something went wrong with that request. Please try again.