Handbook
Glossary
check-duplicate-values ( alist -- alist )
Vocabulary
bare
.
private
Inputs
alist
an
object
Outputs
alist
an
object
Definition
USING:
assocs
bare
kernel
math
sequences
;
IN:
bare.private
:
check-duplicate-values
( alist -- alist )
dup
H{
}
clone
[
[
push-at
]
curry
assoc-each
]
keep
[
nip
length
1
>
]
{
}
assoc-filter-as
[
duplicate-values
]
unless-empty
;