Created
April 19, 2024 13:09
-
-
Save lyxal/428a549cf4952839e6cb410f097df15d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printline | |
readline | |
add | |
sub | |
mul | |
div | |
mod | |
pow | |
range | |
upTo | |
take | |
drop | |
first | |
last | |
behead (remove first) | |
betail (remove last) | |
swap (x y - y x) | |
pop | |
dup | |
rotate (x y z - y z x) | |
rotateStackLeft | |
rotateStackRight | |
switchpush // should be called ternary tbh or even just `?` | |
fold | |
scan | |
map | |
filter | |
reduce | |
sortBy | |
sort | |
greaterThan | |
lessThan | |
equals | |
notEqual | |
not | |
and | |
or | |
negate | |
pair (x y - [x,y]) | |
enlist (x - [x]) | |
ceiling | |
floor | |
wrap (x y z - [x, y, z]) | |
bitwise operators | |
splitOn | |
regex operators | |
joinOn | |
merge ([x, y, z, ...], [a, b, c, ...] - [x, y, z, ..., a, b, c, ...]) | |
repeat | |
round | |
eval/toInt/parseInt/parseFloat | |
toUpper | |
toLower | |
absoluteDifference | |
replace | |
remove | |
toBase | |
fromBase | |
cartesianProduct/table/outerProduct | |
randomChoice | |
trig stuff (sine/cosine/tangent/etc) | |
windows/overlaps | |
logarithm | |
squareRoot | |
zip | |
contains | |
find/indexOf | |
index (a[b]) | |
assign (a[b] = c) | |
insert | |
exactEquality (if str == num) | |
set functions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment