如何在 Racket 中散列字符串?
How do I hash a string in Racket?
如何使用类似于 Racket hash tables 中使用的散列函数的方式快速获取字符串的散列?
equal-hash-code
函数。
(equal-hash-code v) → fixnum?
v : any/c
示例:
> (equal-hash-code "apple")
176156759254714678
> (equal-hash-code "orange")
-3948353453564139403
如何使用类似于 Racket hash tables 中使用的散列函数的方式快速获取字符串的散列?
equal-hash-code
函数。
(equal-hash-code v) → fixnum? v : any/c
示例:
> (equal-hash-code "apple")
176156759254714678
> (equal-hash-code "orange")
-3948353453564139403