concrete-optics.iso.structures
Isomorphism constructors and examples.
eq
The isomorphism whose view
and review
are both identity
. If the optic is not an isomorphism then it throws an exception.
invert-iso
(invert-iso optic)
Swaps view
and review
for an isomorphism. If the input is not an isomorphism then it throws an exception.
mk-iso
(mk-iso view review)
Constructs an isomorphism from a pair of functions which are inverse to each other.