Handbook
Glossary
powerset-partition ( sequence -- partitions )
Vocabulary
regexp
.
disambiguate
Inputs
sequence
an
object
Outputs
partitions
an
object
Definition
USING:
kernel
math
math.bits
sequences
;
IN:
regexp.disambiguate
:
powerset-partition
( sequence -- partitions )
[
length
[
2^
<iota>
]
keep
]
keep
[
[
<bits>
]
curry
]
dip
[
make-partition
]
curry
compose
map
rest
;