Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a ktn_lists:map/3 function #46

Closed
jfacorro opened this issue Apr 24, 2015 · 0 comments
Closed

Add a ktn_lists:map/3 function #46

jfacorro opened this issue Apr 24, 2015 · 0 comments

Comments

@jfacorro
Copy link

This function would allow to specify a list of additional arguments to the Fun supplied thus avoiding the need to create an anonymous fun that captures closures, which is pretty common when calling lists:map.

- spec 'map'(fun(), list(), list()) -> list(). 
'map'(Fun, Args, List) ->
 %% TODO: Implementation
 ok.

Fun will be applied in the following way apply(Fun, [Item | Args]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant