BigInt
Index
Codec
__decode__
Returns the decoded
input
,Result.Ok
orResult.Error()
__encode__
Returns the encoded
input
__schema__
Returns the JSONSchema corresponding to the decoded type
Comparator
!=
"Not equal to" operator
<
"Less than" operator
<=
"Less than or equal to" operator
==
"Equal to" operator
>
"Greater than" operator
>=
"Greater than or equal to" operator
clamp
Clamp value between minValue and maxValue
compare
Return an Ordering that represents comparison result
equals
Alias to '=='
max
"maximum" operator
min
"minimum" operator
Formatting
asString
Converts the given value to a String.
Indexable
indexType
Index type
at
Returns the value at the index
indexOf
Returns the integer index of a value
range
Returns an Iterable starting from
start
toend
. Ifstart
orend
is not in range then returns an empty iterable.
rangeSize
Returns the size of a range. If
start
orend
is not in range then returns 0.
Numeric
*
Multiplication operator
+
Addition operator
-
Subtraction operator
abs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
isNegative
Returns true if the number is negative and false if the number is zero or positive.
isPositive
Returns true if the number is positive and false if the number is zero or negative.
isZero
Returns true if self is equal to the additive identity.
negate
Negates the given value.
sign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
zero
Returns the additive identity element of
T
, 0.
Type
__inspect__
When defined, returns a custom string representation. To be useful, it should be bound to a prototype (ex: Struct)
typeName
Type string representation
asInstance
Try to convert anyValue to enum value or else returns
Option.None
hasInstance
Return
true
if the given value is an instance of the class.
Other
format
Return string representation of bigint using
radix
fromInt
Convert an integer to a bigint
fromNumber
Convert a number to a bigint
parse
Parse the expression and returns a bigint
A collection of functions to manipulate
bigint