Handbook
Glossary
unique-abbrev ( seqs -- assoc )
Vocabulary
sequences
.
abbrev
Inputs
seqs
a
sequence
Outputs
assoc
an
assoc
Word description
Calculates an assoc of { prefix { sequence } } pairs with prefix being an unambiguous prefix of sequence in seqs.
Definition
USING:
assocs
kernel
sequences
;
IN:
sequences.abbrev
:
unique-abbrev
( seqs -- assoc )
abbrev
[
length
1
=
]
filter-values
;