Standard foundation
Pop 0.1.0-rc.2 ships libpop_standard.a as part of the native distribution. Its Pop-facing general functions are deliberately small:
print(value: Int)print(value: String)Both write the value followed by a newline and return no value. The overload is chosen from the argument type.
Arrays have compiler/runtime-supported operations used throughout this book:
Array.create<<T>>(length: Int, initial: T): Array<T>Array.length(array: Array<T>): IntArray.get(array: Array<T>, index: Int): TArray.fill(array: Array<T>, value: T)Array positions are one-based. create traps for a negative length; get traps outside the valid range; fill preserves the fixed length.
Names that are not APIs yet
Section titled “Names that are not APIs yet”The compiler knows bootstrap identities such as Result<T, E>, List<T>, Set<T>, Range<T>, Task<T>, Guid, Iterable<T>, Iterator<T>, Equal<T>, Order<T>, Hash<T>, Close, and AsyncClose. These identities support implementation work but do not come with complete Pop-facing operations in this version.
Likewise, host-side Rust modules for text, sequence, and mathematics are not automatically callable Standard APIs from Pop source. This reference lists only operations that a program can actually use through the 0.1.0-rc.2 compiler and native foundation.
