-
-
Save huseyinyilmaz/7a7a1cc251f071d226a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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()). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment