func v0.4.1 Func.Tuple
Summary
Functions
Takes the first element of Pair
Maps the first element, then returns the pair
Maps the second element, then returns the pair
Takes the second element of pair
Swaps elements of pair
Functions
Maps the first element, then returns the pair.
iex> Func.Tuple.map_fst({1, 2}, &Integer.to_string/1)
{"1", 2}
Maps the second element, then returns the pair.
iex> Func.Tuple.map_snd({1, 2}, &Integer.to_string/1)
{1, "2"}