add CCHash.combine{5,6}

This commit is contained in:
Simon Cruanes 2018-02-21 10:21:36 -06:00
parent 22fce8e16f
commit fe16608524
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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