final class Int_Exp extends AnyVal
The Int_Exp
value class adds an exponentiation operator 'x ~ y' and a
'near_eq' operator 'x =~ y' to Int
.
The '~' has higher precedence than '*' or '/'.
- Alphabetic
- By Inheritance
- Int_Exp
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Int_Exp(self: Int)
- self
the underlying object to be accessed via the self accessor
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
def
!=~(y: Double): Boolean
Determine whether 'this' is not approximately equal to 'y'.
Determine whether 'this' is not approximately equal to 'y'.
- y
the given value
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
=~(y: Double): Boolean
Determine whether 'this' is approximately equal to 'y'.
Determine whether 'this' is approximately equal to 'y'.
- y
the given value
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
in(set: Set[Int]): Boolean
Determine whether 'this' is in the given set.
-
def
in(lim: (Int, Int)): Boolean
Determine whether 'this' is within the given bounds
Determine whether 'this' is within the given bounds
- lim
the given (lower, upper) bounds
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
not_in(set: Set[Int]): Boolean
Determine whether 'this' is not in the given set.
-
def
not_in(lim: (Int, Int)): Boolean
Determine whether 'this' is not within the given bounds
Determine whether 'this' is not within the given bounds
- lim
the given (lower, upper) bounds
- val self: Int
-
def
toString(): String
- Definition Classes
- Any
-
def
~^(y: Int): Int
Raise 'this' to the 'y'-th power.
Raise 'this' to the 'y'-th power.
- y
the given exponent
- def ↑(y: Int): Int
- def ∈(set: Set[Int]): Boolean
- def ∈(lim: (Int, Int)): Boolean
- def ∉(set: Set[Int]): Boolean
- def ∉(lim: (Int, Int)): Boolean
- def ≈(y: Double): Boolean
- def ≉(y: Double): Boolean
-
def
≠(y: Int): Boolean
Determine whether 'this' is not equal to 'y'.
Determine whether 'this' is not equal to 'y'.
- y
the given value
-
def
≤(y: Int): Boolean
Determine whether 'this' is less than or equal to 'y'.
Determine whether 'this' is less than or equal to 'y'.
- y
the given value
-
def
≥(y: Int): Boolean
Determine whether 'this' is greater than or equal to 'y'.
Determine whether 'this' is greater than or equal to 'y'.
- y
the given value