1
0
Fork 0
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:
JonoCode9374 2020-01-04 15:39:41 +11:00 committed by GitHub
parent 012d9089f7
commit d667b9ebd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

95
ref.txt
View file

@ -1,38 +1,37 @@
( ): NOP. Different to Keg where spaces do things. Command | Description | Arity | Left | Right | Returns
(!): (iterable) Returns length of L ( ): NOP | NA | NA | NA
: (+ve integer) Returns factorial of L (!): Length of right argument | 1 | NA | Iterable | length(right)
: (float/-ve integer) Returns the number (at this point) : Factorial of right argument | 1 | NA | Number | factorial(right)
("): Start a string ("): Start/close string | 0 | NA | NA | NA
(#): Comment (#): Comment | NA | NA | NA | NA
($): ($):
(%): Returns L % R (%):
(&): (&):
('): ('):
((): Start array (():
()): Close array ()):
(*): Returns L * R (*):
(+): Returns L + R (+):
(,): Print argument (,):
(-): Returns L - R (-):
(.): (.):
(/): Returns L / R (/):
(0): Number 0 (0):
(1): Number 1 (1):
(2): Number 2 (2):
(3): Number 3 (3):
(4): Number 4 (4):
(5): Number 5 (5):
(6): Number 6 (6):
(7): Number 7 (7):
(8): Number 8 (8):
(9): Number 9 (9):
(:): (Dyadic context) Use l as both sides (:):
: (Otherwise) Double input (;):
(;): Decrement L (<):
(<): Return L < R (=):
(=): Return L == R (>):
(>): Return L > R (?):
(?): Input
(@): (@):
(A): (A):
(B): (B):
@ -41,9 +40,9 @@
(E): (E):
(F): (F):
(G): (G):
(H): Havle L (H):
(I): (I):
(J): Join L based on R (J):
(K): (K):
(L): (L):
(M): (M):
@ -51,8 +50,7 @@
(O): (O):
(P): (P):
(Q): (Q):
(R): (string, number) Repeat L, R times (R):
: (block, number) Repeatedly evaluate l, R times
(S): (S):
(T): (T):
(U): (U):
@ -61,9 +59,9 @@
(X): (X):
(Y): (Y):
(Z): (Z):
([): Grouping syntax ([):
(\): Escape next character (\):
(]): Grouping syntax (]):
(^): (^):
(_): (_):
(`): (`):
@ -84,7 +82,7 @@
(o): (o):
(p): (p):
(q): (q):
(r): Range from L to R (r):
(s): (s):
(t): (t):
(u): (u):
@ -93,18 +91,7 @@
(x): (x):
(y): (y):
(z): (z):
({): Grouping syntax ({):
(}): Grouping syntax (|):
(^): Reverses argument (}):
(~):
Arguments:
L -> Left Argument
R -> Right Argument
l -> Left block
r -> Right block
// Page template generated using the following Keg script
zɧ^(\(,,\),\:, ,
,