Handbook
Glossary
arg-min ( seq -- n )
Vocabulary
sequences
.
extras
Inputs
seq
a
sequence
Outputs
n
an
integer
Word description
Outputs the index of the element with the smallest value in
seq
.
See also
arg-max
Definition
USING:
kernel
;
IN:
sequences.extras
:
arg-min
( seq -- n )
[
]
minimum-by*
drop
;