fixes & enhandcements

(benchmark code..) implemented
repl completion very first version
(string xx) added
some builtin renames
a bit of comments
a bit of cocumentation
(sleep interval) added
This commit is contained in:
2021-03-14 16:15:04 +01:00
parent 8fad428a4b
commit c4e4522492
12 changed files with 276 additions and 110 deletions

View File

@@ -1,4 +1,3 @@
; not a bool
(defun not (x) (if x 0 1))
@@ -9,7 +8,6 @@
(defun or (a b) (if a 1 (if b 1 0)))
; negate a number
(defun neg (n) (- 0 n))
@@ -35,6 +33,9 @@
(string-pad str length pad_char "lpad"))
; pause for interval
(defun sleep (time)
(system-cmd (+ "sleep " (string time))))
; return second element of list