Provide the identity lens and verify composition identities
This commit is contained in:
3 files changed
+7
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user