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

This commit is contained in:
milner committed 2019-03-01 05:48:41 +00:00
1 parent d8c191be6d
commit a7237a6412
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.