hash_combine()hash_combine()

合并两个或更多个哈希的哈希值。Combines hash values of two or more hashes.

语法Syntax

hash_combine(h1 , h2 [, h3 ...])hash_combine(h1 , h2 [, h3 ...])

参数Arguments

  • h1:Long 值,表示第一个哈希值。h1 : Long value representing the first hash value.
  • h2:Long 值,表示第二个哈希值。h2 : Long value representing the second hash value.
  • hN:Long 值,表示第 N 个哈希值。hN : Long value representing Nth hash value.

返回Returns

给定标量的组合哈希值。The combined hash value of the given scalars.

示例Examples

print value1 = "Hello", value2 = "World"
| extend h1 = hash(value1), h2=hash(value2)
| extend combined = hash_combine(h1, h2)
value1value1 value2value2 h1h1 h2h2 已合并combined
你好Hello WorldWorld 753694413698530628753694413698530628 18469884644015519511846988464401551951 -1440138333540407281-1440138333540407281