Reputation: 24590
I need to pass the items of list to a function, using Enum.each
ex:
users= [1, 2, 3, 4, 5]
#how to link the handler_user function in Enum.each?
users
|> Enum.each handler_user
def handler_user user_id
end
So, how would I do the link?
Upvotes: 1
Views: 1377