Provide the identity lens and verify composition identities

This commit is contained in:
milner committed 2019-02-24 07:41:34 +00:00
1 parent 28d28de6fa
commit d8c191be6d
3 files changed
+7

No files matched your search

+1
View File
@@ -12,3 +12,4 @@ let compose (outer_get, outer_put) (inner_get, inner_put) =
let _1 = (fun (left, _) -> left), (fun left (_, right) -> left, right)
let _2 = (fun (_, right) -> right), (fun right (left, _) -> left, right)
let _id = (fun value -> value), (fun value _ -> value)