mirror of
https://github.com/Lyxal/Keta.git
synced 2024-08-14 23:53:13 +00:00
Update ref.txt
This commit is contained in:
parent
671df531be
commit
e089fb7ff8
1 changed files with 37 additions and 37 deletions
74
ref.txt
74
ref.txt
|
@ -1,4 +1,4 @@
|
||||||
Command | Description | Arity | Left | Right | Returns
|
Command | Description | Arity | Left | Right | Pythonish Representation
|
||||||
( ): NOP | NA | NA | NA
|
( ): NOP | NA | NA | NA
|
||||||
(!): Length of right argument | 1 | NA | Iterable | length(right)
|
(!): Length of right argument | 1 | NA | Iterable | length(right)
|
||||||
: Factorial of right argument | 1 | NA | Number | factorial(right)
|
: Factorial of right argument | 1 | NA | Number | factorial(right)
|
||||||
|
@ -21,16 +21,16 @@ Command | Description | Arity | Left | Right | Returns
|
||||||
(-):
|
(-):
|
||||||
(.):
|
(.):
|
||||||
(/):
|
(/):
|
||||||
(0):
|
(0): Number
|
||||||
(1):
|
(1): Number
|
||||||
(2):
|
(2): Number
|
||||||
(3):
|
(3): Number
|
||||||
(4):
|
(4): Number
|
||||||
(5):
|
(5): Number
|
||||||
(6):
|
(6): Number
|
||||||
(7):
|
(7): Number
|
||||||
(8):
|
(8): Number
|
||||||
(9):
|
(9): Number
|
||||||
(:):
|
(:):
|
||||||
(;):
|
(;):
|
||||||
(<):
|
(<):
|
||||||
|
@ -38,32 +38,32 @@ Command | Description | Arity | Left | Right | Returns
|
||||||
(>):
|
(>):
|
||||||
(?):
|
(?):
|
||||||
(@):
|
(@):
|
||||||
(A):
|
(A): Absolute value | 1 | NA | Number | abs(right)
|
||||||
(B):
|
(B): Binary to base 10 | 1 | NA | Number | int(2, right)
|
||||||
(C):
|
(C): Ceiling | 1 | NA | Number | math.ceil(right)
|
||||||
(D):
|
(D): Double | 1 | NA | Number | right * 2
|
||||||
(E):
|
(E): Eval | 1 | NA | String | ket_eval(right)
|
||||||
(F):
|
(F): Factorise | 1 | NA | Number | find_factors(right)
|
||||||
(G):
|
(G): Genrate range from 0 to right (inclusive) | 1 | NA | Number | range(0, right + 1)
|
||||||
(H):
|
(H): Halve | 1 | NA | Number | right / 2
|
||||||
(I):
|
(I): If statement | 2* | Expression | Block | if(expression, blocks)
|
||||||
(J):
|
(J): Join x by y | 2 | Iterable | String | right.join(left)
|
||||||
(K):
|
(K): Constant library | 1 | NA | Character | constants[right]
|
||||||
(L):
|
(L): List range | 2 | Number | Number | range(left, right + 1)
|
||||||
(M):
|
(M): Map function to iterable | 2 | Iterable | Block | map(right, left)
|
||||||
(N):
|
(N): Negate | 1 | NA | Number | right * -1
|
||||||
(O):
|
(O): One-dimensionify a list (flatten) | 1 | NA | Iterable | [item for sublist in l for item in sublist]
|
||||||
(P):
|
(P): Permutation | 2 | Iterable | Number | itertools.permutations(left, right)
|
||||||
(Q):
|
(Q): Quit/terminate program | 0 | NA | NA | exit()
|
||||||
(R):
|
(R): Reduce by block | 2 | Iterable | Block | functools.reduce(right, left)
|
||||||
(S):
|
(S): Square | 2 | Iterable | Number | textwrap.wrap(left, right)
|
||||||
(T):
|
(T): Top of stack | 1 | NA | Iterable | right[0]
|
||||||
(U):
|
(U): Uniquify | 1 | NA | Iterable | unique(right)
|
||||||
(V):
|
(V): Variable set | 2 | String | Any | left = right
|
||||||
(W):
|
(W): While loop | 2 | Expression | Block | While(left, right)
|
||||||
(X):
|
(X): Exclude/remove items | 2 | Iterable | Any | list(filter((right).__ne__, left))
|
||||||
(Y):
|
(Y): Loop variable
|
||||||
(Z):
|
(Z): Zip | 2 | Iterable | Iterable | zip(left, right)
|
||||||
([):
|
([):
|
||||||
(\):
|
(\):
|
||||||
(]):
|
(]):
|
||||||
|
|
Loading…
Reference in a new issue