hashcode ( obj -- code ) (original) (raw)

hashcode ( obj -- code )
Factor handbook » The language » Collections » Hashtables » Hashtable keys

Next: hashcode* ( depth obj -- code )

Vocabulary
kernel

Inputs

obj an object

Outputs

code a fixnum

Word description
Computes the hashcode of an object with a default hashing depth. See hashcode* for the hashcode contract.

See also
hashcode*, identity-hashcode

Definition

IN: kernel

: hashcode ( obj -- code ) 3 swap hashcode* ; inline