File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ external id : 'a -> 'a = "%identity"
1919let const v = fun _ -> v
2020
2121(* * Functor interface *)
22- let map f = bimap id f
22+ let map f = bimap f id
2323let (< $> ) = map
24- let mapLeft f = bimap f id
24+ let mapError f = bimap id f
2525
2626(* * Predicates *)
2727let isOk v = result (const true ) (const false ) v
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ val error : 'b -> ('a, 'b) t
77
88val result : ('a -> 'c ) -> ('b -> 'c ) -> ('a , 'b ) t -> 'c
99
10- val map : ('b -> 'c ) -> ('a , 'b ) t -> ('a , 'c ) t
11- val (< $> ) : ('b -> 'c) -> ('a, 'b) t -> ('a , 'c ) t
12- val mapLeft : ('a -> 'c ) -> ('a , 'b ) t -> ('c , 'b ) t
10+ val map : ('a -> 'c ) -> ('a , 'b ) t -> ('c , 'b ) t
11+ val (< $> ) : ('a -> 'c) -> ('a, 'b) t -> ('c , 'b ) t
12+ val mapError : ('b -> 'c ) -> ('a , 'b ) t -> ('a , 'c ) t
1313
1414val bimap : ('a -> 'c ) -> ('b -> 'd ) -> ('a , 'b ) t -> ('c , 'd ) t
1515
You can’t perform that action at this time.
0 commit comments