Elixir Language List Membership


Example

Use in operator to check if an element is a member of a list.

iex> 2 in [1, 2, 3]
true
iex> "bob" in [1, 2, 3]
false