From 93b11f7de37266aa0b753544b6d197a498e6f8d9 Mon Sep 17 00:00:00 2001 From: mryouse Date: Thu, 12 May 2022 02:59:46 +0000 Subject: progress 5/11 --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a7e48be..ec1f0d0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,14 @@ - `(concat [arg1 :string] [arg2 :string]) => :string` ### flow control - - `(if [cond :bool] [t-branch :expr] [f-branch :expr]) => :any` + - `(if [cond :bool] [t-branch :any] [[f-branch :any]]) => :any` + +### type checking + - `(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` ### other - pretty much nothing else @@ -47,7 +54,7 @@ ### flow control - [x] if -- [ ] if with empty else +- [x] if with empty else - [ ] branch ### lists -- cgit v1.2.3