Skip to content

hash(combine:)

ctreffs edited this page Oct 7, 2020 · 5 revisions

hash(combine:)

Calculates the combined hash value of the elements. This implementation is based on boost:​:​hash_range. Is sensitive to the order of the elements.

public func hash<H: Sequence>(combine hashValues: H) -> Int where H.Element: Hashable

Parameters

  • hashValues: sequence of hash values to combine.

Returns

combined hash value.

Clone this wiki locally