Handle list head and tail updates with explicit empty-list errors

This commit is contained in:
sneeker committed 2019-03-01 05:48:41 +00:00
1 parent adc5d38b9b
commit c835f992fd
4 files changed
+26

No files matched your search

+2
View File
@@ -3,3 +3,5 @@
Lenses for reading and updating immutable data in OCaml.
Build with `make`; run the checks with `make test`.
The `_hd` and `_tl` lenses raise `Invalid_argument` on empty lists.