mirror of https://github.com/Lyxal/Keta.git
Update ref.txt
This commit is contained in:
parent
1e2f77e8c0
commit
1d93a2c52f
60
ref.txt
60
ref.txt
|
@ -18,9 +18,9 @@ Command | Description | Arity | Left | Right | Pythonish Representation
|
||||||
: Add left and right | 2 | String | String | left + right
|
: Add left and right | 2 | String | String | left + right
|
||||||
: Append right to left | 2 | List | Any | left.append(right)
|
: Append right to left | 2 | List | Any | left.append(right)
|
||||||
(,): Separate list items | 0 | NA | NA | NA
|
(,): Separate list items | 0 | NA | NA | NA
|
||||||
(-):
|
(-): Subtraction | 2 | Number | Number | left - right
|
||||||
(.):
|
(.): Special constants | 0 | NA | NA | NA
|
||||||
(/):
|
(/): Divison | 2 | Number | Number | left / right
|
||||||
(0): Number
|
(0): Number
|
||||||
(1): Number
|
(1): Number
|
||||||
(2): Number
|
(2): Number
|
||||||
|
@ -31,18 +31,18 @@ Command | Description | Arity | Left | Right | Pythonish Representation
|
||||||
(7): Number
|
(7): Number
|
||||||
(8): Number
|
(8): Number
|
||||||
(9): Number
|
(9): Number
|
||||||
(:):
|
(:): Double the input | 1 | NA | Any | [right, right]
|
||||||
(;):
|
(;): Decrement | 1 | NA | Any | right - 1
|
||||||
(<):
|
(<): Less than | 2 | Any | Any | left < right
|
||||||
(=):
|
(=): Equality | 2 | Any | Any | left == right
|
||||||
(>):
|
(>): Greater than | 2 | Any | Any | left > right
|
||||||
(?):
|
(?): Input, eval'd | 0 | NA | NA | keta_eval(input())
|
||||||
(@):
|
(@):
|
||||||
(A): Absolute value | 1 | NA | Number | abs(right)
|
(A): Absolute value | 1 | NA | Number | abs(right)
|
||||||
(B): Binary to base 10 | 1 | NA | Number | int(2, right)
|
(B): Binary to base 10 | 1 | NA | Number | int(2, right)
|
||||||
(C): Ceiling | 1 | NA | Number | math.ceil(right)
|
(C): Ceiling | 1 | NA | Number | math.ceil(right)
|
||||||
(D): Double | 1 | NA | Number | right * 2
|
(D): Double | 1 | NA | Number | right * 2
|
||||||
(E): Eval | 1 | NA | String | ket_eval(right)
|
(E): Eval | 1 | NA | String | keta_eval(right)
|
||||||
(F): Factorise | 1 | NA | Number | find_factors(right)
|
(F): Factorise | 1 | NA | Number | find_factors(right)
|
||||||
(G): Genrate range from 0 to right (inclusive) | 1 | NA | Number | range(0, right + 1)
|
(G): Genrate range from 0 to right (inclusive) | 1 | NA | Number | range(0, right + 1)
|
||||||
(H): Halve | 1 | NA | Number | right / 2
|
(H): Halve | 1 | NA | Number | right / 2
|
||||||
|
@ -64,26 +64,26 @@ Command | Description | Arity | Left | Right | Pythonish Representation
|
||||||
(X): Exclude/remove items | 2 | Iterable | Any | list(filter((right).__ne__, left))
|
(X): Exclude/remove items | 2 | Iterable | Any | list(filter((right).__ne__, left))
|
||||||
(Y): Loop variable
|
(Y): Loop variable
|
||||||
(Z): Zip | 2 | Iterable | Iterable | zip(left, right)
|
(Z): Zip | 2 | Iterable | Iterable | zip(left, right)
|
||||||
([):
|
([): Start a block
|
||||||
(\):
|
(\): Escape the next character
|
||||||
(]):
|
(]): End a block
|
||||||
(^):
|
(^):
|
||||||
(_):
|
(_):
|
||||||
(`):
|
(`):
|
||||||
(a):
|
(a): all | 1 | NA | Iterable | all(right)
|
||||||
(b):
|
(b): binary representation | 1 | NA | Any | bin(right)
|
||||||
(c):
|
(c): contains | 2 | Iterable | Any | right in left
|
||||||
(d):
|
(d): divmod | 2 | Number | Number | divmod(left, right)
|
||||||
(e):
|
(e): exec | 1 | NA | String | keta_exec(right)
|
||||||
(f):
|
(f): filter | 2 | Iterable | Block | keta_fitler(left, right)
|
||||||
(g):
|
(g): generate exclusive range | 1 | NA | Number | range(0, right)
|
||||||
(h):
|
(h): hack/stride | 2 | Iterable | Iterable(Number, Number) | left[right[0]:right[1]]
|
||||||
(i):
|
(i): loop variable
|
||||||
(j):
|
(j): loop variable
|
||||||
(k):
|
(k): loop variable
|
||||||
(l):
|
(l): Lookup/index | 2 | Iterable | Any | left.index(right)
|
||||||
(m):
|
(m): maximum | 2 | Any | Any | max(left, right)
|
||||||
(n):
|
(n): newline | 0 | NA | NA | NA
|
||||||
(o):
|
(o):
|
||||||
(p):
|
(p):
|
||||||
(q):
|
(q):
|
||||||
|
@ -96,7 +96,7 @@ Command | Description | Arity | Left | Right | Pythonish Representation
|
||||||
(x):
|
(x):
|
||||||
(y):
|
(y):
|
||||||
(z):
|
(z):
|
||||||
({):
|
({): Start a block
|
||||||
(|):
|
(|): Seperate items
|
||||||
(}):
|
(}): End a block
|
||||||
(~):
|
(~):
|
||||||
|
|
Loading…
Reference in New Issue