Elixir Language Operators 'In' operator


Example

in operator allows you to check whether a list or a range includes an item:

iex(4)> 1 in [1, 2, 3, 4]
true

iex(5)> 0 in (1..5)
false