mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-10 21:23:57 -05:00
fix: compat in CCArray
This commit is contained in:
parent
68e539173f
commit
f6dc3b23f8
1 changed files with 4 additions and 0 deletions
|
|
@ -720,11 +720,15 @@ module Infix = struct
|
||||||
let (--) = (--)
|
let (--) = (--)
|
||||||
let (--^) = (--^)
|
let (--^) = (--^)
|
||||||
|
|
||||||
|
[@@@ifge 4.8]
|
||||||
|
|
||||||
type 'a t = 'a array
|
type 'a t = 'a array
|
||||||
let ( let* ) = (>>=)
|
let ( let* ) = (>>=)
|
||||||
let (let+) = (>|=)
|
let (let+) = (>|=)
|
||||||
let[@inline] (and+) a1 a2 = monoid_product (fun x y->x,y) a1 a2
|
let[@inline] (and+) a1 a2 = monoid_product (fun x y->x,y) a1 a2
|
||||||
let ( and* ) = (and+)
|
let ( and* ) = (and+)
|
||||||
|
|
||||||
|
[@@@endif]
|
||||||
end
|
end
|
||||||
|
|
||||||
include Infix
|
include Infix
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue