diff options
Diffstat (limited to 'functions.txt')
| -rw-r--r-- | functions.txt | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/functions.txt b/functions.txt new file mode 100644 index 0000000..986164f --- /dev/null +++ b/functions.txt @@ -0,0 +1,132 @@ +CONTROL FLOW: +[x] and +[ ] branch +[ ] drop-while +[ ] for-count +[ ] for-each +[x] if +[x] or +[ ] take-while +[ ] while + +DEFINITIONS: +[x] def +[-] func +[ ] redef +[ ] type +[ ] use +[ ] use-as + +FILES: +[ ] close +[ ] exists? +[ ] glob +[ ] open-append +[ ] open-read +[ ] open-write +[ ] read +[ ] read-lines +[ ] unlink +[ ] write + +HOF: +[ ] filter +[ ] map +[ ] reduce + +LISP-Y: +[ ] apply +[x] block +[ ] parse-neb +[ ] eval +[ ] lambda +[ ] quote + +LISTS: +[ ] append +[ ] empty? +[ ] first +[ ] in? +[ ] last +[ ] length +[-] list (works, but adds every item as a constant?) +[ ] most +[ ] prepend +[ ] rest +[ ] reverse +[ ] shuf +[ ] slice + +LOGIC: +[x] < +[x] <= +[x] > +[x] >= +[ ] eq? +[x] not + +MATH: +[ ] * +[x] + +[x] - +[ ] / +[ ] floor + +META: +[ ] funcs +[ ] howto +[ ] symbols +[ ] syntax +[ ] user-funcs +[ ] user-symbols + +STRINGS: +[-] concat (accepts a single string) (this should be a Native function) +[ ] first +[ ] join +[ ] last +[ ] length +[ ] most +[ ] ord +[ ] raw +[ ] rest +[ ] reverse +[ ] slice +[ ] split +[ ] strip + +TERMINAL: +[ ] $ +[ ] argv +[ ] clear +[ ] env +[ ] exit +[ ] print +[ ] read-char +[ ] read-line + +TYPES: +[ ] ->string +[ ] any? +[ ] bool? +[ ] float? +[ ] handle? +[ ] int? +[ ] list? +[ ] literal? +[ ] nil? +[ ] number? +[ ] string->float +[ ] string->int +[ ] string? +[ ] type? +[ ] typeof + + +OTHER: +[ ] remove +[ ] zip +[ ] assert +[ ] bench +[ ] try + |
