Order

com.alecdorrington.scalgebra.ordered.Order
See theOrder companion trait
object Order extends Ops

The companion object for Order.

Attributes

Companion
trait
Graph
Supertypes
trait Ops
class Object
trait Matchable
class Any
Self type
Order.type

Members list

Type members

Classlikes

trait Ops

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Order

Value members

Concrete methods

inline def order[X](using order: Order[X]): Order[X]

The Order instance describing the current algebra system.

The Order instance describing the current algebra system.

Attributes

Inherited methods

inline def clamp[X](x: X, lb: X, ub: X)(using X: Order[X]): X

Clamps x to the inclusive range [lb, ub].

Clamps x to the inclusive range [lb, ub].

Attributes

Returns

lb if x is less than lb, ub if greater than ub, or x otherwise.

Inherited from:
Ops

Exports

Defined exports

final val Order: Order
Exported from ordered
final type Order = Order
Exported from ordered