+
: add two numbers, or concatenate-
: subtract*
: multiply or repeat a string n times/
: divide%
: moduluse
: exponentN
: negate or lowercase;
: pair,[a, b]
D
: remove first element orn - 2
for num⅃
: reverseṛ
: remove all occurences of somethingC
: concatenateĊ
: binomial coefficientД
: doubleP
: divisors or prefixesO
: ord/chr:
: first n items of string or listΠ
: factorial or product∑
: sumṗ
: permutationsṖ
: powersetB
: binary string=
: equal (vectorizes)Q
: equal (does not vectorize)ċ
: containsỌ
: range [1, a]Ȯ
: range [1, a)Ż
: range [0, a)Ẓ
: range [0, a]Ỵ
: interleave∂
: transliterateḢ
: First item; headṇ
: join by newlinesȯ
: overlapping elements of size n_
: contextual input#G
: gridify#s
: suffixes#i
: infinite list of positive integers#I
: infinite list of all integers:[0, 1, -1, 2, -2, ...]
#Ḟ
: infinite fibonacci#P
: infinite primes#f
: nth fibonaccic1
: constant[1, 1]
ca
: lowercase alphabetcA
: uppercase alphabetcz
: lowercase alphabet reversedcZ
: uppercase alphabet reversedcb
:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
cy
:zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
cc
:bcdfghjklmnpqrstvwxyz
cċ
:bcdfghjklmnpqrstvwxz
cv
:aeiou
cṽ
:aeiouy
cV
: `AEIOU"cṿ
:aeiouAEIOU
Modifiers:
G
: given a function, return a monad with takes intiial value and generates an infinite list∇
: swap args or min-by.¤
: next two as monad¢
: next three as monad¦
: next four as monad¥
: next two as dyad©
: next three as dyad§
: next four as dyad€
: each. vectorizes over the first vector, or if there is no vector, the first argument.δ
: right-each. vectorizes over the last vector, or if there is no vector, the last argument. given a monad, max-by.ß
: monadify a dyad by repeating the argument, or given a monad, sort-by./
: reduce a list by a function, or if given a nilad n, consumes a function after that and reduces all chunks of size n by the function. so/2+
adds all chunks of size 2 in the array given.ω
: apply function over all overlapping pairs of list, or given a nilad n, gets all overlapping lists of size n and reduces the function over each
Syntax:
'a
: one-char string"..."
: string literal- any of
0123456789.
: number literal ##
: one-line comment#{
: open multi-line comment, closed by}#
. nestable}
: close some structure that is open (map, list, etc.)[
: open a list literal, closed by}
:[1 2 3}
γ
: map over a list, closed by}
. soγ...}
acts the same as a monadic operator, use it just like any other.