Viewing all the functions in a module

Essential Elixir : part 5 of 10 published on Aug 16, 2015

To view all the functions in a module with Elixir you can use the __info__ function and pass in :functions as the parameter.

> Enum.__info__(:functions)

[all?: 1, all?: 2, any?: 1, any?: 2, at: 2, at: 3, chunk: 2, chunk: 3, chunk: 4,
 chunk_by: 2, concat: 1, concat: 2, count: 1, count: 2, drop: 2, drop_while: 2,
 each: 2, empty?: 1, fetch: 2, fetch!: 2, filter: 2, filter_map: 3, find: 2,
 find: 3, find_index: 2, find_value: 2, find_value: 3, flat_map: 2,
 flat_map_reduce: 3, group_by: 2, group_by: 3, intersperse: 2, into: 2, into: 3,
 join: 1, join: 2, map: 2, map_join: 2, map_join: 3, map_reduce: 3, max: 1,
 max_by: 2, member?: 2, min: 1, min_by: 2, partition: 2, reduce: 2, reduce: 3,
 reject: 2, reverse: 1, ...]

Resources:

Next: Concat Lists with Elixir