diff options
| author | mryouse | 2022-05-25 01:13:52 +0000 |
|---|---|---|
| committer | mryouse | 2022-05-25 01:13:52 +0000 |
| commit | 597000e8db6687c7b5f4a88a323a51c5e145421b (patch) | |
| tree | bd5dccd30144dc509c21bc12037a9967588809f3 /README.md | |
| parent | a42cd74b24cf671cdeaaa813f1dd5b2e44a7dfe6 (diff) | |
progress 5/24
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -20,6 +20,7 @@ ### file system - `(glob [regex :string]) => :list` - `(read-lines [filename :string]) => :list` + - `(unlink [filename :string]) => :list ; returns empty list on success` ### comparison and boolean - `(and [arg :bool] [many :bool]) => :bool` @@ -48,13 +49,15 @@ - `(for-each [items :list] [many :expr]) => :any ; creates '_item_' variable with current item` - `(| [first :expr] [many :expr]) => :any ; creates 'items' variable` - `(branch ([cond1 :bool] [expr1 :any]) [([condN: :bool] [exprN :any])]) => :any` + - `(block [expr1 :any] ... [exprN :any]) => :any` -### type checking TODO - - `(string? [arg :any]) => :bool` - - `(int? [arg :any]) => :bool` - - `(float? [arg :any]) => :bool` - - `(number? [arg :any]) => :bool ; returns #true for :int or :float` - - `(bool? [arg :any]) => :bool` +### type checking + - TODO `(string? [arg :any]) => :bool` + - TODO `(int? [arg :any]) => :bool` + - TODO `(float? [arg :any]) => :bool` + - TODO `(number? [arg :any]) => :bool ; returns #true for :int or :float` + - TODO `(bool? [arg :any]) => :bool` + - `(list? [arg :any]) => :bool` ### type conversion - TODO `(int->string [arg :int]) => :string` @@ -83,6 +86,7 @@ - `(list-length [arg :list]) => :int` - `(list-reverse [arg :list]) => :int` - `(rest [arg :list]) => :any ; cdr` + - `(shuf [arg :list]) => :list ; shuffle the elements of the list` - `(zip [arg1 :list] [arg2 :list]) => :list` ### "higher order" |
