return to top
source
Composing a Prod.map with another Prod.map is equal to a single Prod.map of composed functions.
Prod.map
Composing a Prod.map with another Prod.map is equal to a single Prod.map of composed functions, fully applied.
Swaps the elements in a pair.
Examples:
(1, 2).swap = (2, 1)
("orange", -87).swap = (-87, "orange")
For two functions f and g, the composition of Prod.map f g with Prod.swap is equal to the composition of Prod.swap with Prod.map g f.
f
g
Prod.map f g
Prod.swap
Prod.map g f