Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (8 sloc) 0.256 kB
-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]).
Jump to Line
Something went wrong with that request. Please try again.