mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
add CCHash.combine{5,6}
This commit is contained in:
parent
22fce8e16f
commit
fe16608524
2 changed files with 12 additions and 0 deletions
|
|
@ -21,6 +21,12 @@ let combine3 a b c =
|
|||
let combine4 a b c d =
|
||||
combine2 (combine2 a b) (combine2 c d)
|
||||
|
||||
let combine5 a b c d e =
|
||||
combine2 (combine2 a b) (combine2 (combine2 c d) e)
|
||||
|
||||
let combine6 a b c d e f =
|
||||
combine2 (combine2 a b) (combine2 (combine2 c d) (combine2 e f))
|
||||
|
||||
(** {2 Combinators} *)
|
||||
|
||||
let const h _ = h
|
||||
|
|
|
|||
|
|
@ -64,6 +64,12 @@ val combine2 : hash -> hash -> hash
|
|||
val combine3 : hash -> hash -> hash -> hash
|
||||
val combine4 : hash -> hash -> hash -> hash -> hash
|
||||
|
||||
val combine5 : hash -> hash -> hash -> hash -> hash -> hash
|
||||
(** @since NEXT_RELEASE *)
|
||||
|
||||
val combine6 : hash -> hash -> hash -> hash -> hash -> hash -> hash
|
||||
(** @since NEXT_RELEASE *)
|
||||
|
||||
(** {2 Iterators} *)
|
||||
|
||||
type 'a sequence = ('a -> unit) -> unit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue