blob: 8a3b0106c003ea8bc067d991c5eb4c185f8bc188 (
plain) (
blame)
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
|