84adefa331
2b0326effe
1 2
3
4 5 6 7 8 9
10 11
%1 -module(fun_test). -export([t1/0, t2/0]). -import(lists, [map/2]). t1() -> map(fun(X) -> 2 * X end, [1,2,3,4,5]). t2() -> map(fun double/1, [1,2,3,4,5]). double(X) -> X * 2. %1