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
- Alphabetic
- By Inheritance
- Nat
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Nat()
Type Members
- abstract type *[_ <: Nat] <: Nat
Multiply another Nat with this one.
- abstract type +[_ <: Nat] <: Nat
Add another Nat to this one.
- type ++ = Succ[Self]
Increment this Nat.
- abstract type Flip_^[_ <: Nat] <: Nat
- abstract type Fold[U, F[_ <: U] <: U, Z <: U] <: U
The type of a folding operation on this Nat.
- abstract type Self <: Nat
The type of this Nat object.
- type ^[T <: Nat] = ^.T.Flip_^[Self]
Raise this Nat to the exponent given by another Nat.
- type _0 = Self.*[_10]
Multiply this Nat by 10.
- type _1 = *.+[Nat._1]
Multiply this Nat by 10, then add 1.
- type _2 = *.+[Nat._2]
Multiply this Nat by 10, then add 2.
- type _3 = *.+[Nat._3]
Multiply this Nat by 10, then add 3.
- type _4 = *.+[Nat._4]
Multiply this Nat by 10, then add 4.
- type _5 = *.+[Nat._5]
Multiply this Nat by 10, then add 5.
- type _6 = *.+[Nat._6]
Multiply this Nat by 10, then add 6.
- type _7 = *.+[Nat._7]
Multiply this Nat by 10, then add 7.
- type _8 = *.+[Nat._8]
Multiply this Nat by 10, then add 8.
- type _9 = *.+[Nat._9]
Multiply this Nat by 10, then add 9.
Abstract Value Members
Concrete Value Members
- def *[T <: Nat](n: T): *[T]
Multiply another Nat with this one.
- def +[T <: Nat](n: T): +[T]
Add another Nat to this one.
- def ++: ++
Increment this Nat.
- def ^[T <: Nat](n: T): ^[T]
Raise this Nat to the exponent given by another Nat.
- def _0: _0
Multiply this Nat by 10.
- def _1: _1
Multiply this Nat by 10, then add 1.
- def _2: _2
Multiply this Nat by 10, then add 2.
- def _3: _3
Multiply this Nat by 10, then add 3.
- def _4: _4
Multiply this Nat by 10, then add 4.
- def _5: _5
Multiply this Nat by 10, then add 5.
- def _6: _6
Multiply this Nat by 10, then add 6.
- def _7: _7
Multiply this Nat by 10, then add 7.
- def _8: _8
Multiply this Nat by 10, then add 8.
- def _9: _9
Multiply this Nat by 10, then add 9.
- def equals(o: Any): Boolean
- Definition Classes
- Nat → AnyRef → Any
- def hashCode(): Int
- Definition Classes
- Nat → AnyRef → Any
- def toString(): String
- Definition Classes
- Nat → AnyRef → Any
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...