Susan Potter
snippets: Created / Updated

Decoding lens operators

Notation conventions

The following table provides a quick overview of conventions used in symbolic operators in the lens library.

SymbolConceptDenotes
^gettergets value from structure
~settersets values in structure
%overapply transformation over selected substructure
=statethreads state through
<<before changereturns value before specified change
<after changereturns value after specified change
?Maybeoptionality
!forceforce value

If you enjoyed this content, please consider sharing this link with a friend, following my GitHub or LinkedIn accounts, or subscribing to my RSS feed.