Handbook
Glossary
sequence-hashcode ( n seq -- x )
Vocabulary
sequences
Inputs
n
an
integer
seq
a
sequence
Outputs
x
an
integer
Word description
Iterates over a sequence, computes a hashcode with
hashcode*
for each element, and combines them using
sequence-hashcode-step
.
Definition
USING:
kernel
sequences.private
;
IN:
sequences
:
sequence-hashcode
( n seq -- x )
[
0
]
2dip
[
hashcode*
sequence-hashcode-step
]
with
each
;
inline