Animals (animals v0.1.0)

Documentation for Animals.

Link to this section Summary

Functions

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.

create_zoo returns list of zoo animals

randomise a list of zoo animals

Link to this section Functions

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

create_zoo returns list of zoo animals

Examples

iex> Animals.create_zoo
["lion", "tiger", "..."]

randomise a list of zoo animals

Examples

iex> zoo = Animals.create_zoo()
iex> Animals.randomise(zoo)
["monkey", "gorilla", "..."]
Link to this function

save(zoo, filename)

Link to this function

see_animals(zoo, count)

Link to this function

selection(number)