Class/Object

slick.collection.heterogeneous

Nat

Related Docs: object Nat | package heterogeneous

Permalink

abstract class Nat extends AnyRef

Natural numbers for indexing in HLists.

All type-level computations are done with Church Numerals. Value-level computations at run-time are done directly on the underlying Int values, similar to java.lang.Integer.

Source
Nat.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Nat
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Nat()

    Permalink

Type Members

  1. abstract type *[_ <: Nat] <: Nat

    Permalink

    Multiply another Nat with this one.

  2. abstract type +[_ <: Nat] <: Nat

    Permalink

    Add another Nat to this one.

  3. type ++ = Succ[Self]

    Permalink

    Increment this Nat.

  4. abstract type Flip_^[_ <: Nat] <: Nat

    Permalink
  5. abstract type Fold[U, F[_ <: U] <: U, Z <: U] <: U

    Permalink

    The type of a folding operation on this Nat.

  6. abstract type Self <: Nat

    Permalink

    The type of this Nat object.

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

    Permalink

    Raise this Nat to the exponent given by another Nat.

  8. type _0 = Self.*[_10]

    Permalink

    Multiply this Nat by 10.

  9. type _1 = *.+[Nat._1]

    Permalink

    Multiply this Nat by 10, then add 1.

  10. type _2 = *.+[Nat._2]

    Permalink

    Multiply this Nat by 10, then add 2.

  11. type _3 = *.+[Nat._3]

    Permalink

    Multiply this Nat by 10, then add 3.

  12. type _4 = *.+[Nat._4]

    Permalink

    Multiply this Nat by 10, then add 4.

  13. type _5 = *.+[Nat._5]

    Permalink

    Multiply this Nat by 10, then add 5.

  14. type _6 = *.+[Nat._6]

    Permalink

    Multiply this Nat by 10, then add 6.

  15. type _7 = *.+[Nat._7]

    Permalink

    Multiply this Nat by 10, then add 7.

  16. type _8 = *.+[Nat._8]

    Permalink

    Multiply this Nat by 10, then add 8.

  17. type _9 = *.+[Nat._9]

    Permalink

    Multiply this Nat by 10, then add 9.

Abstract Value Members

  1. abstract def self: Self

    Permalink

    This Nat, typed as Self.

  2. abstract def value: Int

    Permalink

    The equivalent Int value for this Nat.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *[T <: Nat](n: T): *[T]

    Permalink

    Multiply another Nat with this one.

  4. def +[T <: Nat](n: T): +[T]

    Permalink

    Add another Nat to this one.

  5. def ++: ++

    Permalink

    Increment this Nat.

  6. def ->[B](y: B): (Nat, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to ArrowAssoc[Nat] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def ^[T <: Nat](n: T): ^[T]

    Permalink

    Raise this Nat to the exponent given by another Nat.

  9. def _0: _0

    Permalink

    Multiply this Nat by 10.

  10. def _1: _1

    Permalink

    Multiply this Nat by 10, then add 1.

  11. def _2: _2

    Permalink

    Multiply this Nat by 10, then add 2.

  12. def _3: _3

    Permalink

    Multiply this Nat by 10, then add 3.

  13. def _4: _4

    Permalink

    Multiply this Nat by 10, then add 4.

  14. def _5: _5

    Permalink

    Multiply this Nat by 10, then add 5.

  15. def _6: _6

    Permalink

    Multiply this Nat by 10, then add 6.

  16. def _7: _7

    Permalink

    Multiply this Nat by 10, then add 7.

  17. def _8: _8

    Permalink

    Multiply this Nat by 10, then add 8.

  18. def _9: _9

    Permalink

    Multiply this Nat by 10, then add 9.

  19. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def ensuring(cond: (Nat) ⇒ Boolean, msg: ⇒ Any): Nat

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to Ensuring[Nat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: (Nat) ⇒ Boolean): Nat

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to Ensuring[Nat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean, msg: ⇒ Any): Nat

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to Ensuring[Nat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean): Nat

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to Ensuring[Nat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    Nat → AnyRef → Any
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to StringFormat[Nat] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

    Permalink
    Definition Classes
    Nat → AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    Nat → AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def [B](y: B): (Nat, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to ArrowAssoc[Nat] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Nat to any2stringadd[Nat] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (nat: any2stringadd[Nat]).+(other)
    Definition Classes
    any2stringadd

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Nat to any2stringadd[Nat]

Inherited by implicit conversion StringFormat from Nat to StringFormat[Nat]

Inherited by implicit conversion Ensuring from Nat to Ensuring[Nat]

Inherited by implicit conversion ArrowAssoc from Nat to ArrowAssoc[Nat]

Ungrouped