fast-elixir
fast-elixir copied to clipboard
Enum.member? vs el in list
Hey, great repo here! Thanks! I learnt a lot!
I landed here after searching for a comparison between:
is_list_member = Enum.member?(list, el)
# vs
is_in_list = el in list
Any chance you would add this idiom to the repo?
Cheers
They should be exactly the same, left in right expands to an Enum.member? call, if right is not a list or range literal