A Racket package for creating and composing pure functional lenses
Go to file
Jack Firth ccd81c5c86 Merge pull request #68 from lexi-lambda/deftech-lens
Use deftech to define a ‘lens’ term in the documentation
2015-07-06 22:39:08 -07:00
lens Use deftech to define a ‘lens’ term in the documentation 2015-07-06 22:34:47 -07:00
.gitignore Add documentation coverage test, remove undocumented exports 2015-07-06 12:52:04 -07:00
.travis.yml Revert "Restrict push builds to master" 2015-07-06 12:43:55 -07:00
info.rkt Fix test exclusion paths 2015-07-06 21:09:18 -07:00
README.md Fix references to "lenses" 2015-07-06 19:48:05 -07:00

lens Build Status Coverage Status Stories in Ready

Documentation

A Racket package for creating and composing pure functional lenses.

A lens is a value that can be used to focus on a small subpiece of some larger structure. Given a lens and a value of that larger structure, two values can be dervied: a view value, which is the subpiece, and a context function, which accepts a new view value and returns a new structure with the old view replaced by the new view. Think of them as composable, pure functional getters and setters. Examples can be found in the documentation.