i/core
The operations that are not written in i (§13).
not
True for False, and False for True.
not : (Bool) -> Bool to_float
The nearest Float, with ties to even.
to_float : (Int) -> Float truncate
The Float without its fraction, rounded toward zero.
truncate : (Float) -> Int floor
The greatest whole number that is not greater.
floor : (Float) -> Float ceiling
The smallest whole number that is not smaller.
ceiling : (Float) -> Float sqrt
The square root.
sqrt : (Float) -> Float float_to_bits
The 64 bits of the IEEE 754 binary64 value.
float_to_bits : (Float) -> Int float_from_bits
The float with the lowest 64 bits of the number.
float_from_bits : (Int) -> Float bit_and
Bitwise and, on two’s complement with no end.
bit_and : (Int, Int) -> Int bit_or
Bitwise or, on two’s complement with no end.
bit_or : (Int, Int) -> Int bit_xor
Bitwise exclusive or, on two’s complement with no end.
bit_xor : (Int, Int) -> Int bit_not
-x - 1.
bit_not : (Int) -> Int shift_left
x times 2^n.
shift_left : (Int, Int) -> Int shift_right
x divided by 2^n, rounded down.
shift_right : (Int, Int) -> Int concat
The strings one after the other.
concat : (List(String)) -> String byte_size
The number of UTF-8 bytes.
byte_size : (String) -> Int byte_slice
The bytes from start, length of them.
byte_slice : (String, Int, Int) -> Result(String, Nil) codepoints
The characters in order.
codepoints : (String) -> List(UtfCodepoint) from_codepoints
The string of these characters.
from_codepoints : (List(UtfCodepoint)) -> String codepoint_to_int
The number of the character.
codepoint_to_int : (UtfCodepoint) -> Int int_to_codepoint
The character with this number.
int_to_codepoint : (Int) -> Result(UtfCodepoint, Nil) to_upper
Each character by its simple uppercase mapping in Unicode.
to_upper : (String) -> String to_lower
Each character by its simple lowercase mapping in Unicode.
to_lower : (String) -> String index_of
The byte offset of the first find at or after byte from.
index_of : (String, String, Int) -> Result(Int, Nil) bit_size
The number of bits.
bit_size : (BitArray) -> Int bit_array_to_string
The string, when the bits are whole bytes of correct UTF-8.
bit_array_to_string : (BitArray) -> Result(String, Nil) bit_array_concat
The bit arrays one after the other.
bit_array_concat : (List(BitArray)) -> BitArray inspect
The text form of the value (§11.8).
inspect : <A>(A) -> String hash
A number from 0 to 2^32 - 1; values that are the same give the same number.
hash : <A>(A) -> Int portable
Whether this value and every capture or held value can cross workers.
portable : <A>(A) -> Bool