accumulate.erl

1
2
3
4
5
-module(accumulate).
-export([accumulate/2]).

accumulate(_, []) -> [];
accumulate(Fn, [Head|Tail]) -> [Fn(Head) | accumulate(Fn, Tail)].

Comments


You're not logged in right now. Please login via GitHub to comment