Handbook
Glossary
take-two ( pos seq -- elt-at-pos-1 elt-at-pos )
Vocabulary
rosetta-code
.
gnome-sort
Inputs
pos
an
object
seq
an
object
Outputs
elt-at-pos-1
an
object
elt-at-pos
an
object
Definition
USING:
kernel
sequences
;
IN:
rosetta-code.gnome-sort
:
take-two
( pos seq -- elt-at-pos-1 elt-at-pos )
[
dec-pos
nth
]
[
nth
]
2bi
;
inline