Skip to content

Latest commit

 

History

History
289 lines (274 loc) · 12 KB

functions.md

File metadata and controls

289 lines (274 loc) · 12 KB

Unary


Number


Symbol Description Output Type
Stores the current value into the assignable variable "间" Number
Makes the first autofill in this scope the current value Number
Return length of number, inc. decimal point Number
Negate the number Number
Double the number Number
Halve (not rounded) Number
Increment Number
Decrement Number
Convert to string String
Convert to base-10 digit array List
Convert to hexadecimal string Number
Convert to binary string Number
1 if 0, else 0 Number
Absolute value Number
Factorial (Note: Returns the caller if caller is negative) Number
Square root Number
Square Number
Range [1..x] (inclusive) List
Binary complement Number
Number parity Number
Round up Number
Round down Number
Sign Number
To character String

String


Symbol Description Output Type
Stores the current expression result into the assignable variable "间" String
Makes the first autofill in this scope the current value String
Length Number
Reverse String
1st char String
Last char String
To number (returns caller string if not parsable) Number/String
To char array List[String]
Split on " " List[String]
Split on newline "\n" String
Array of char values, or just an int if length 1 List[Number]/Number
All permutations of the string List[String]
To Upper String
To Lower String
Repeat itself, twice String
Split on newlines, then transpose rows and columns, then rejoin with newlines String
Unique chars in order they appear String
All subsections List[String]
String
String
String
String
String
String
String

List


Symbol Description Output Type
Stores the current expression result into the assignable variable "间" List
Makes the first autofill in this scope the current value List
Length Number
Reverse the list List
1st element T
Last element T
Sort List
Concatenate List
Join w/ " " String
Join w/ "\n" String
Sum (Map strings by parsing them or 0, lists to 0) Humber
Product (Map strings by parsing them or 1, lists to 1) Number
Flatten Completely List
Remove first List
Max (Strings to parsed or NegativeInfinity, lists to NegativeInfinity) List
Min (Strings to parsed or PositiveInfinity, lists to PositiveInfinity) Number
Cumulative Sum (Strings to parsed or 0, lists to 0) Number
Subsections (inc. self) List
Permutations List
Combinations List
Group List
List
List
List
List

Binary


Number


Symbol Argument Type Description Output Type
Number Addition Number
String Append s to N String
List Prepend N to l List
Number Subtraction Number
Number Multiplication Number
Number Division Number
Number Range [x..y] List
Number Modulus Number
Number Round up to nearest multiple of n Number
Number Round down to nearest multiple of n Number
Number To nth power of 10, multplied by N Number
Number Compare: N == n -> 0, N > n -> 1, N < n -> -1 Number
Number Coprime N to n Number
Number Smaller of caller and argument Number
Number Larger of N and n Number
Number n - N (subtraction but reversed) Number
Number N to nth power Number
Number nth root of N Number
Number Round to nearest multiple of n Number
Number Base n string String
String Base s string String
String Base s string String
Number DivRem List
Lambda[Number] First integer greater than or equal to x that fulfills the lambda Number
String Get Nth character of s String
List Get Nth character of l T
Lambda[Number] Create range [0..N), then map it with Lambda List
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Number
Number Pair List
String Pair List
List Pair List
Number Equals Number
String Equals Number
List Equals Number

String


Symbol Argument Type Description Output Type
String Concatenation String
Number Concatenation String
Number Prepend S to l String
String Split S on s List
Number Split S on n List
String Prepend S with s String
Number Split S into chunks of size n List
Number Split S into n chunks containing consecutive elements List
String First index of s within S Number
String Last index of s within S Number
String All indexes of s within S List
String All indexes of s within S List
String Delete all instances of s from S String
List For each pair of strings (s1, s2) in l, replace each instance of s1 in S with s2. If there are odd number of elements in l, for the last element it is replaced with empty string String
string Delete all instances of s from S String
string For each pair of strings (s1, s2) in l, replace each instance of s1 in S with s2. If there are odd number of elements in l, for the last element it is replaced with empty string String
Lambda[T,Number] Map List
Lambda[T,Number] Filter String
Lambda[T,Number] Group By List[List[String]]
Lambda[String,Number] Filter out truthy String
Lambda[String,Number] Reduce List
Lambda[T,Number] Culmulative Reduction List
String Sum with lambda Number
Lambda[T,Number] Cumulative Sum with lambda List
Number Take first n elements of S List
Number Take last n elements of S List
Lambda[String,Number] Take while lambda returns true String
Number Skip first n elements of S String
Number Skip last n elements of S String
Lambda[T,Number] Skip while lambda returns true String
Lambda[T,Number] Sort with lambda List
Lambda[T,Number] Sort descending with lambda List
Number Get nth char (negative gets from back) String
List Foreach value in l, get nth element (negative gets from back) List
Number Contains the certain VObject (in this case number) Number
String Contains the certain VObject (in this case string) Number
String Remove all characters in s from S String
Number Remove all characters in n from S String
Number Convert S from base-n string to base-10 integer, else returns itself if invalid (supports base 2 - 36) String/Number
String Convert S from base-s string to base-10 integer, else returns itself if invalid String/Number
String Remove all String
String String
String String
String String
String String
String String
String String
String String
String String
String String
String String
String String
String String
String String
String Pair List
Number Pair List
List Pair List
List Equals Number
String Equals Number
Number Equals Number

List


Symbol Argument Type Description Output Type
List Concatenation List
String Append s to L List
Number Append n to L List
String Join L on s String
Number Join L on n List
List Prepend l to L List
Number Split S into chunks of size n List
List Split S into n chunks List
List First index of s within S List
List Last index of s within S List
List All indexes of s within S List
String All indexes of s within S List
List All indexes of s within S List
String Delete all instances of s from L List
Number Delete all instances of s from L List
Lambda[T,Number] Map List
Lambda[T,Number] Filter List
Lambda[T,Number] Group By List
Lambda[T,Number] Filter out truthy List
Lambda[T,Number] Reduce List
Lambda[T,Number] Culmulative Reduction List
Lambda[T,Number] Sum with lambda Number
Lambda[T,Number] Cumulative Sum with lambda List
Number Take first n elements of L List
Number Take last n elements of L List
Lambda[T,Number] Take while lambda returns true List
Number Skip first n elements of L List
Number Skip last n elements of L List
Lambda[T,Number] Skip while lambda returns true List
Lambda[T,Number] Sort with lambda List
Lambda[T,Number] Sort descending with lambda List
Number Get nth element (negative gets from back) T
List Foreach value in l, get nth element (negative gets from back) List
List Contains the certain VObject (in this case list) Number
Number Contains the certain VObject (in this case number) Number
String Contains the certain VObject (in this case string) Number
Lambda[T, Number] Given that L is of the structure [l, n] or [n,l], repeatedly pass the last element into the lambda and append it onto l until l is of n length, then return the nth element of l T
Lambda[T, Number] Given that L is of the structure [l, n] or [n,l], repeatedly pass the last element into the lambda and append it onto l until l is of n length, then return the first n elements of l T
List List
List List
List List
List List
List List
List List
List List
List List
List List
List List
List List
List List
List List
List List
List Pair List
Number Pair List
String Pair List
List Equals Number
String Equals Number
Number Equals Number