swiss v1.4.0 Swiss.Enum View Source

A few extra functions for dealing with Enums.

Link to this section Summary

Functions

Applies cb to all elements in enum, ignores the return and returns enum.

Link to this section Functions

Applies cb to all elements in enum, ignores the return and returns enum.

Examples

iex> Swiss.Enum.thru([1, 2, 3], fn a -> a + 1 end)
[1, 2, 3]