Handbook
Glossary
fill-nans ( seq -- newseq )
Vocabulary
math
.
extras
Inputs
seq
an
object
Outputs
newseq
an
object
Definition
USING:
kernel
math
sequences
;
IN:
math.extras
:
fill-nans
( seq -- newseq )
[
first
]
keep
[
dup
fp-nan?
[
drop
dup
]
[
nip
dup
]
if
]
map
nip
;