Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 665 Bytes

lenses.md

File metadata and controls

20 lines (17 loc) · 665 Bytes
layout tags
page
ecosystem

Lenses

Lenses are a modular, functional method to update and read immutable record fields. They were developed originally by the Haskell community but have now been ported to other languages, including OCaml. If you're writing a functional application with deeply-nested immutable records, Lenses are very helpful.

  • Lens: A lens implementation in OCaml. Includes a PPX rewriter for boilerplate lens accessors.
  • Accessor: Jane Street's version of Lenses. Compiles against either Base, Core or Async. Also includes a PPX rewriter.