From 2b0326effe5c28acac7aac302295c5b0c5216cff Mon Sep 17 00:00:00 2001 From: yannayl Date: Tue, 27 Jan 2015 12:37:44 +0200 Subject: Fixed fun_test examples Removed false example from fun_test.erl Removed unused code from fun_test.erl --- system/doc/programming_examples/fun_test.erl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'system/doc/programming_examples') diff --git a/system/doc/programming_examples/fun_test.erl b/system/doc/programming_examples/fun_test.erl index 8472fd87f8..8a3b0106c0 100644 --- a/system/doc/programming_examples/fun_test.erl +++ b/system/doc/programming_examples/fun_test.erl @@ -1,17 +1,11 @@ %1 -module(fun_test). --export([t1/0, t2/0, t3/0, t4/0, double/1]). +-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]). -t3() -> map({?MODULE, double}, [1,2,3,4,5]). - double(X) -> X * 2. %1 - - -t4() -> - "hello world". -- cgit v1.2.3