A Racket package for creating and composing pure functional lenses
Go to file
Making GitHub Delicious. 3954d39b0d add waffle.io badge
2015-03-19 10:54:39 -06:00
lenses Add assq and assv lens tests 2015-02-25 23:11:33 -08:00
.gitignore Add package scaffold 2015-02-21 22:16:48 -08:00
.travis.yml Add package scaffold 2015-02-21 22:16:48 -08:00
info.rkt Add package scaffold 2015-02-21 22:16:48 -08:00
README.md add waffle.io badge 2015-03-19 10:54:39 -06:00

Stories in Ready lenses Build Status Coverage Status

Documentation

A Racket package for creating and composing pure functional lenses. A lens is a function that examines a small subpiece of some larger structure. When given a value of that larger structure, the lens returns two values: 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.