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 via social media, following my accounts, or subscribing to the RSS feed.