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

ordered

🌌ordered

ordered -- feature for immutable values that have an infix <= function
predicate that defines a total order

features inheriting from ordered define a total order of their values

NYI: the compiler should check that features inheriting from this are
actually immutable.

§infix <(other T)
 => 
bool
:
Object

does this come strictly before other?

§infix <>(other T)
 => 
i32
:
Object

three-way comparison between this and other.

result is < 0 if this < other
result is > 0 if this > other
result is = 0 if this = other

§infix >(other T)
 => 
bool
:
Object

does this come strictly after other?

does this come after other?