Animals.contains-question-mark
You're seeing just the function
contains-question-mark
, go back to Animals module for more information.
Link to this function
contains?(zoo, animal)
contains? takes a list of zoo animals and a single animal and returns a boolean as to whether or not the list contains the given animal.
Examples
iex> zoo = Animals.create_zoo iex> Animals.contains?(zoo, "gorilla") true