Skip to content

Instantly share code, notes, and snippets.

View huseyinyilmaz's full-sized avatar

Huseyin Yilmaz huseyinyilmaz

  • Balikesir, Turkey
View GitHub Profile
-module("folding_funs").
-export([transform_something/1]).
transformations() ->
[fun trans1/1, fun trans2/1, fun trans3/1].
transform_something(A) ->
lists:foldl(fun(Fun, Acc) -> Fun(Acc) end, A, transformations()).