Handbook
Glossary
transposes ( word -- edits )
Vocabulary
spelling
Inputs
word
an
object
Outputs
edits
an
object
Definition
USING:
kernel
math
ranges
sequences
sequences.private
;
IN:
spelling
:
transposes
( word -- edits )
[
length
[1..b)
]
keep
[
[
dup
1
-
]
]
dip
[
clone
[
exchange-unsafe
]
keep
]
curry
compose
map
;