concrete-optics.lens.structures

Lens constructors and examples.

field

(field ks)

This captures the get and set properties provided by the language as a lens. Assumes that the fields already exist. The input is a vector of keys.

mk-lens

(mk-lens get put)

Constructs a lens from a getter and putter.