List[T]List#push(element: T) -> Voidpushes an element at the end of the list
List#pop() -> Tpops the last element of the list, undefined behavior for empty lists
List#length() -> IntList#insert(element: T, index: Int) -> VoidList#remove(element: T) -> VoidList#remove_at(index: Int) -> VoidList#slice(from: Int, to: Int) -> List[T]List#slice_from(from: Int) -> List[T]List#slice_to(to: Int) -> List[T]List#map(f: Function[T, Z]) -> List[Z]List#filter(f: Function[T, Boolean]) -> List[T]List#reduce(f: Function[T, Z, Z], initial: Z) -> ZList#any?(f: Function[T, Boolean]) -> BooleanList#all?(f: Function[T, Boolean]) -> BooleanList#sort() -> Voidsorts in place
Dictionary[K, V]Dictionary#length() -> IntDictionary#contains?(element: T) -> BooleanDictionary#keys() -> List[K]Dictionary#values() -> List[V]Dictionary#present?() -> BooleanDictionary#empty?() -> BooleanSet#length() -> IntSet#contains?(element: T) -> BooleanSet#union(right: Set[T]) -> Set[T]Set#intersection(right: Set[T]) -> Set[T]Set#present?() -> BooleanSet#empty?() -> BooleanTuple#length() -> IntArray#length() -> IntString#substr(from: Int, to: Int) -> StringString#substr_from(from: Int) -> StringString#substr_to(to: Int) -> StringString#length() -> IntString#concat(value: String) -> StringString#find(element: String) -> IntString#count(element: String) -> IntString#partition(on: String) -> Tuple[String, String]String#split(delimiter: String) -> List[String]String#trim() -> StringString#reversed() -> StringString#center(count: Int, fill: String) -> StringString#present?() -> BooleanString#empty?() -> BooleanString#to_int() -> IntString#pad_left(count: Int, fill: String) -> StringString#pad_right(count: Int, fill: String) -> StringInt#to_int() -> IntInt#to_float() -> FloatCurrently just several methods, add more in future versions and investigate edge cases
ln(x: Number) -> Floatthe natural logarithm of x
log(x: Number, base: Number) -> Floatcos(x: Number) -> Floatthe cosine of x
tan(x: Number) -> Floatthe tangent
sin(x: Number) -> Floatdisplay(*args: Any) -> Voidwrites the contents to STDOUT using the native print function. display is the only pseudo
function accepting a variable number of args
read() -> Stringreads a line from STDIN
args() -> List[String]returns a list with all the command line args
arg_count() -> Intreturns the number of command line args (including the filename)
index(a: Int) -> Stringa-th command arg, 1-based indexing(filename is 0)