Int
Companion for scala.Int
This object also defines specialized custom containers for Int type, so the following code can run without boxing:
val s: Int.~ = 1 <> 5
val o: Int.Opt = s.readRaw_? // Holds Int.Opt(1)
val l: Int.>< = s.>< // Holds (2,3,4,5)
- Source
- __.scala
Member
trait _extension
Int Extension Methods
Extension methods universaly avaialble for type scala.Int
- Source
- _extension.scala
object G
Raw Int Generic Specialized Containers
The generic containers are never used directly, but rather as customized shortcuts for specific types.
For example:
Int.G.><[Int]
usually called asInt.><
Double.G.Idx[Percent]
usually called asPercent.Idx
Int.G.Pro.Mutable[Day]
usually called asDay.Pro.Mutable
Long.G.Collection[Time]
usually called asTime.Collection
- Source
- __.scala