A collection of programs that substitute for the commands found here. Single byte nilads aren't included. Vectorisation isn't included, i.e. [1, 2, 3] + 10 != [11, 12, 13]
with these substitutions, however, if there is a non-vecotirsing equivilent, then the vecotirsing one must vectorise. N/A indicates that a solution is currently under development or may not be possible. Keep in mind that exec
ing Python code isn't a valid alternative.
Please note that these do not have to handle overloads.
These are links which take a single argument, and aren't expected to work when given 2 arguments.
Atom | Description | Program |
---|---|---|
¬ |
Logical NOT | Ṇ€ |
½ |
Square root | *. |
! |
Factorial | RP |
A |
Absolute value | ²½ |
B |
Convert to binary | b2 |
C |
1 - z | 1_ |
D |
Digits | ṾV€ |
E |
All equal | ⁼/ |
F |
Flatten | ẎÐL |
H |
Halve | ÷2 |
I |
Increments | ṡ2_/€N |
J |
Length range | LR |
K |
Join by spaces | j⁶ |
L |
Length | JṪ |
M |
Maximal elements' indicies | =ṀT |
N |
Negate | 0_ |
P |
Product | ×/ |
Q |
Deduplicate | ị@ŒQT$ |
R |
Range | ẆṪ |
S |
Sum | +/ |
T |
Truthy indices | JżµṪÐf |
U |
Reverse each | Ṛ€ |
X |
Randint/Choice | ẊṪ |
Y |
Join by newlines | j⁷ |
Z |
Columns | N/A |
~ |
Bitwise NOT | N’ |
¹ |
Identity | ;“” |
² |
Square | × |
Ạ |
All | ¬¬P |
Ḅ |
From binary | J’2*U¶×ÇS |
Ḍ |
From digits | Ṿ€V |
Ẹ |
Any | ¬¬S |
Ḥ |
Double | ×2 |
Ị |
Insignificant | A>1¬ |
Ḳ |
Split on spaces | ṣ⁶ |
Ḷ |
Lowered range | R’ |
Ṃ |
Minimum | «/ |
Ṇ |
Non-vectorising logical NOT | ¬P |
Ṣ |
Sort | ¹Þ |
Ṭ |
Boolean indicies array | ¬Ðḟ¬¬ |
Ụ |
Sort indicies by values | żJḢÞ |
Ỵ |
Split on newlines | ṣ⁷ |
Ȧ |
Any and all | FẠ×L¬¬ |
Ḃ |
Bit | %2 |