Expose infix viewing, replacement, mapping, and composition

This commit is contained in:
milner committed 2019-03-06 21:16:11 +00:00
1 parent a7237a6412
commit 59e39e593c
3 files changed
+24

No files matched your search

+8
View File
@@ -11,3 +11,11 @@ val _2 : ('c * 'a, 'c * 'b, 'a, 'b) lens
val _id : ('a, 'b, 'a, 'b) lens
val _hd : ('a list, 'a) lens'
val _tl : ('a list, 'a list) lens'
module Infix : sig
val ( ^. ) : 's -> ('s, 't, 'a, 'b) lens -> 'a
val ( ^~ ) : ('s, 't, 'a, 'b) lens -> 'b -> 's -> 't
val ( ^% ) : ('s, 't, 'a, 'b) lens -> ('a -> 'b) -> 's -> 't
val ( ^> ) : ('s, 't, 'a, 'b) lens -> ('a, 'b, 'c, 'd) lens -> ('s, 't, 'c, 'd) lens
val ( ^< ) : ('a, 'b, 'c, 'd) lens -> ('s, 't, 'a, 'b) lens -> ('s, 't, 'c, 'd) lens
end