Documentation
¶
Overview ¶
Package integer exposes JVM-faithful java.lang.Integer equivalents for code running on glojure. Each symbol is published two ways:
- as a Go package-level value (used when gloat AOT-compiles a Clojure call site to a direct Go reference such as `compatinteger.ParseInt`); and
- through glojure's pkgmap (used by the REPL and any dynamic resolution path).
Where the JVM signature is overloaded by arity (parseInt(s) / parseInt(s, radix), toString(i) / toString(i, radix), valueOf(int) / valueOf(String)), the bridge dispatches polymorphically at call time and returns int32 to match Java's int width.
Index ¶
- Constants
- func BitCount(x any) int32
- func Compare(x, y any) int32
- func HighestOneBit(x any) int32
- func LowestOneBit(x any) int32
- func Max(a, b any) int32
- func Min(a, b any) int32
- func NumberOfLeadingZeros(x any) int32
- func NumberOfTrailingZeros(x any) int32
- func ParseInt(args ...any) any
- func Reverse(x any) int32
- func ReverseBytes(x any) int32
- func Signum(x any) int32
- func Sum(a, b any) int32
- func ToBinaryString(x any) string
- func ToHexString(x any) string
- func ToOctalString(x any) string
- func ToString(args ...any) string
- func ValueOf(x any) int32
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func HighestOneBit ¶
func LowestOneBit ¶
func NumberOfLeadingZeros ¶
func NumberOfTrailingZeros ¶
func ReverseBytes ¶
func ToBinaryString ¶
func ToHexString ¶
func ToOctalString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.