nan-max ( seq -- n )


Vocabulary
math.extras

Inputs and outputs
seqa sequence
na number


Word description
Return the supremum of seq ignoring any NaNs.

Definition
USING: kernel math sequences ;

IN: math.extras

: nan-max ( seq -- n ) [ fp-nan? not ] filter supremum ;