mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
Shadow polymorphic functions in CCList
This commit is contained in:
parent
35c2d0ed54
commit
ff69945575
3 changed files with 39 additions and 2 deletions
|
|
@ -1313,6 +1313,11 @@ module Assoc = struct
|
|||
*)
|
||||
end
|
||||
|
||||
let assoc = Assoc.get_exn
|
||||
let assoc_opt = Assoc.get
|
||||
let mem_assoc = Assoc.mem
|
||||
let remove_assoc = Assoc.remove
|
||||
|
||||
(** {2 References on Lists} *)
|
||||
|
||||
module Ref = struct
|
||||
|
|
|
|||
|
|
@ -463,14 +463,26 @@ module Assoc : sig
|
|||
@since 0.17 *)
|
||||
end
|
||||
|
||||
val assoc_opt : 'a -> ('a * 'b) t -> 'b option
|
||||
(** Safe version of {!assoc}
|
||||
val assoc : eq:('a -> 'a -> bool) -> 'a -> ('a * 'b) t -> 'b
|
||||
(** Same as [Assoc.get_exn]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
val assoc_opt : eq:('a -> 'a -> bool) -> 'a -> ('a * 'b) t -> 'b option
|
||||
(** Same as [Assoc.get]
|
||||
@since 1.5 *)
|
||||
|
||||
val assq_opt : 'a -> ('a * 'b) t -> 'b option
|
||||
(** Safe version of {!assq}
|
||||
@since 1.5 *)
|
||||
|
||||
val mem_assoc : eq:('a -> 'a -> bool) -> 'a -> ('a * _) t -> bool
|
||||
(** Same as [Assoc.mem]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
val remove_assoc : eq:('a -> 'a -> bool) -> 'a -> ('a * 'b) t -> ('a * 'b) t
|
||||
(** Same as [Assoc.remove]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
(** {2 References on Lists}
|
||||
@since 0.3.3 *)
|
||||
|
||||
|
|
|
|||
|
|
@ -346,6 +346,26 @@ module Assoc : sig
|
|||
@since 0.17 *)
|
||||
end
|
||||
|
||||
val assoc : eq:('a -> 'a -> bool) -> 'a -> ('a * 'b) t -> 'b
|
||||
(** Same as [Assoc.get_exn]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
val assoc_opt : eq:('a -> 'a -> bool) -> 'a -> ('a * 'b) t -> 'b option
|
||||
(** Same as [Assoc.get]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
val assq_opt : 'a -> ('a * 'b) t -> 'b option
|
||||
(** Safe version of {!assq}
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
val mem_assoc : eq:('a -> 'a -> bool) -> 'a -> ('a * _) t -> bool
|
||||
(** Same as [Assoc.mem]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
val remove_assoc : eq:('a -> 'a -> bool) -> 'a -> ('a * 'b) t -> ('a * 'b) t
|
||||
(** Same as [Assoc.remove]
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
(** {2 References on Lists}
|
||||
@since 0.3.3 *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue