aboutsummaryrefslogtreecommitdiff
path: root/functions.txt
diff options
context:
space:
mode:
authorBen Winston2023-05-23 23:02:04 -0400
committerBen Winston2023-05-23 23:02:04 -0400
commitbf44744480707e7c9e3c36a379f41138b2041047 (patch)
tree8d6eeaa66f5e194a98a8fc694870dc7e027697ac /functions.txt
parent277f7110b01a510e42fd8a75682ebe3c4daa3d40 (diff)
add some reference material
Diffstat (limited to 'functions.txt')
-rw-r--r--functions.txt132
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
+