aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormryouse2022-06-06 01:07:21 +0000
committermryouse2022-06-06 01:07:21 +0000
commitddddb1395f147615983a3cdb6672870cfc0b224e (patch)
treee78c55268f6a01a0fb6ee9144974141b441bd89e /README.md
parent90a359ef5930b4dd764c49edef7c951caeec037d (diff)
progress 6/5
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index cfc43ec..980cd0f 100644
--- a/README.md
+++ b/README.md
@@ -14,8 +14,8 @@
- TODO `(exit [[status :int]]) => :bool`
### io
+ - `(input [prompt :string]) => :string`
- `(print [out :string]) => :bool ; print to stdout`
- - TODO `(print-all [strings :list]) => :bool ; a list of strings`
### file system
- `(exists? [filename :string]) => :bool`
@@ -57,6 +57,7 @@
- `(| [first :expr] [many :expr]) => :any ; creates 'items' variable`
- `(branch ([cond1 :bool] [expr1 :any]) [([condN: :bool] [exprN :any])]) => :any`
- `(block [expr1 :any] ... [exprN :any]) => :any`
+ - `(while [cond :bool] [many :expr]) => :any`
### type checking
- TODO `(string? [arg :any]) => :bool`
@@ -87,6 +88,7 @@
- `(func name (args) (expr1) (expr2) ... (exprN)) => :any`
### lists
+ - `(append [arg :list] [value :any]) => :list`
- `(empty? [arg :list]) => :bool`
- `(first [arg :list]) => :any ; car`
- `(in? [candidate :literal] [target :list]) => :bool`
@@ -94,6 +96,7 @@
- `(list [arg :any] [many :any]) => :list`
- `(list-length [arg :list]) => :int`
- `(list-reverse [arg :list]) => :int`
+ - `(remove [arg :list] [key :literal]) => :list ; this is actually for records`
- `(rest [arg :list]) => :any ; cdr`
- `(shuf [arg :list]) => :list ; shuffle the elements of the list`
- `(slice [arg :list] [start-idx :int] [[length :int]]) => :list`