36967cc123988de2b8876efc5961aa6812098563
fieldglass
Lenses for reading and updating immutable data in OCaml.
Annotate a record with [@@fieldglass generate] to generate field accessors.
The [@@lens generate] spelling is also accepted.
Build with make; run the checks with make test.
The _hd and _tl lenses raise Invalid_argument on empty lists.
Description
Record lenses for composable accessors and immutable data updates
60 KiB
6 Stars
1 Watchers
0 Forks
Languages
OCaml
81.7%
Shell
15.8%
Makefile
2.5%