Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

numericSequence

🌌numericSequence

numericSequence -- a Sequence whose elements inherit from numeric

create a list from this Sequence.

redefines Sequence.asList:
create a list from this Sequence.

A list is immutable, so it can be reused and shared between threads.
Compared to a stream, a list may require more (heap) allocation.

Default implementation uses asStream. Heirs must redefine at least
one of asList or asStream.

the arithmetic mean of the sequence
https://en.wikipedia.org/wiki/Arithmetic_mean

are these numeric sequences equal?
i.e. do they only contain equal numbers
redefines hasEquals.infix =:
equality check for immutable values

maximum value in the sequence

the median of the sequence
https://en.wikipedia.org/wiki/Median

minimum value in the sequence

the variance of the sequence
https://en.wikipedia.org/wiki/Variance