From ddddb1395f147615983a3cdb6672870cfc0b224e Mon Sep 17 00:00:00 2001 From: mryouse Date: Mon, 6 Jun 2022 01:07:21 +0000 Subject: progress 6/5 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.md') 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` -- cgit v1.2.3