Packages

object Zero extends Nat

The zero value and type for Nat

Source
Nat.scala
Linear Supertypes
Nat, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Zero
  2. Nat
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type *[_ <: Nat] = Zero.type

    Multiply another Nat with this one.

    Multiply another Nat with this one.

    Definition Classes
    ZeroNat
  2. type +[X <: Nat] = X

    Add another Nat to this one.

    Add another Nat to this one.

    Definition Classes
    ZeroNat
  3. type ++ = Succ[Self]

    Increment this Nat.

    Increment this Nat.

    Definition Classes
    Nat
  4. type Flip_^[_ <: Nat] = Succ[Self]
    Definition Classes
    ZeroNat
  5. type Fold[U, F[_ <: U] <: U, Z <: U] = Z

    The type of a folding operation on this Nat.

    The type of a folding operation on this Nat.

    Definition Classes
    ZeroNat
  6. type Self = Zero.type

    The type of this Nat object.

    The type of this Nat object.

    Definition Classes
    ZeroNat
  7. type ^[T <: Nat] = Nat.^.T.Flip_^[Self]

    Raise this Nat to the exponent given by another Nat.

    Raise this Nat to the exponent given by another Nat.

    Definition Classes
    Nat
  8. type _0 = *[_10]

    Multiply this Nat by 10.

    Multiply this Nat by 10.

    Definition Classes
    Nat
  9. type _1 = +[Nat._1]

    Multiply this Nat by 10, then add 1.

    Multiply this Nat by 10, then add 1.

    Definition Classes
    Nat
  10. type _2 = +[Nat._2]

    Multiply this Nat by 10, then add 2.

    Multiply this Nat by 10, then add 2.

    Definition Classes
    Nat
  11. type _3 = +[Nat._3]

    Multiply this Nat by 10, then add 3.

    Multiply this Nat by 10, then add 3.

    Definition Classes
    Nat
  12. type _4 = +[Nat._4]

    Multiply this Nat by 10, then add 4.

    Multiply this Nat by 10, then add 4.

    Definition Classes
    Nat
  13. type _5 = +[Nat._5]

    Multiply this Nat by 10, then add 5.

    Multiply this Nat by 10, then add 5.

    Definition Classes
    Nat
  14. type _6 = +[Nat._6]

    Multiply this Nat by 10, then add 6.

    Multiply this Nat by 10, then add 6.

    Definition Classes
    Nat
  15. type _7 = +[Nat._7]

    Multiply this Nat by 10, then add 7.

    Multiply this Nat by 10, then add 7.

    Definition Classes
    Nat
  16. type _8 = +[Nat._8]

    Multiply this Nat by 10, then add 8.

    Multiply this Nat by 10, then add 8.

    Definition Classes
    Nat
  17. type _9 = +[Nat._9]

    Multiply this Nat by 10, then add 9.

    Multiply this Nat by 10, then add 9.

    Definition Classes
    Nat

Value Members

  1. def *[T <: Nat](n: T): *[T]

    Multiply another Nat with this one.

    Multiply another Nat with this one.

    Definition Classes
    Nat
  2. def +[T <: Nat](n: T): +[T]

    Add another Nat to this one.

    Add another Nat to this one.

    Definition Classes
    Nat
  3. def ++: ++

    Increment this Nat.

    Increment this Nat.

    Definition Classes
    Nat
  4. def ^[T <: Nat](n: T): ^[T]

    Raise this Nat to the exponent given by another Nat.

    Raise this Nat to the exponent given by another Nat.

    Definition Classes
    Nat
  5. def _0: _0

    Multiply this Nat by 10.

    Multiply this Nat by 10.

    Definition Classes
    Nat
  6. def _1: _1

    Multiply this Nat by 10, then add 1.

    Multiply this Nat by 10, then add 1.

    Definition Classes
    Nat
  7. def _2: _2

    Multiply this Nat by 10, then add 2.

    Multiply this Nat by 10, then add 2.

    Definition Classes
    Nat
  8. def _3: _3

    Multiply this Nat by 10, then add 3.

    Multiply this Nat by 10, then add 3.

    Definition Classes
    Nat
  9. def _4: _4

    Multiply this Nat by 10, then add 4.

    Multiply this Nat by 10, then add 4.

    Definition Classes
    Nat
  10. def _5: _5

    Multiply this Nat by 10, then add 5.

    Multiply this Nat by 10, then add 5.

    Definition Classes
    Nat
  11. def _6: _6

    Multiply this Nat by 10, then add 6.

    Multiply this Nat by 10, then add 6.

    Definition Classes
    Nat
  12. def _7: _7

    Multiply this Nat by 10, then add 7.

    Multiply this Nat by 10, then add 7.

    Definition Classes
    Nat
  13. def _8: _8

    Multiply this Nat by 10, then add 8.

    Multiply this Nat by 10, then add 8.

    Definition Classes
    Nat
  14. def _9: _9

    Multiply this Nat by 10, then add 9.

    Multiply this Nat by 10, then add 9.

    Definition Classes
    Nat
  15. def equals(o: Any): Boolean
    Definition Classes
    Nat → AnyRef → Any
  16. def hashCode(): Int
    Definition Classes
    Nat → AnyRef → Any
  17. def self: Zero

    This Nat, typed as Self.

    This Nat, typed as Self.

    Definition Classes
    ZeroNat
  18. def toString(): String
    Definition Classes
    Nat → AnyRef → Any
  19. def value: Int

    The equivalent Int value for this Nat.

    The equivalent Int value for this Nat.

    Definition Classes
    ZeroNat