* | Consume two numbers and produce their product. |
+ | Consume two numbers and produce their sum. |
- | Consume two numbers and produce their difference. |
-> | Consumes a variable number of values, and binds them as one or more commands. |
... | Consume a quote, and produce its values. |
/ | Consume two numbers and produce their ratio. |
: | Consumes a variable number of values, and binds them as one or more commands. |
:: | Consumes a variable number of values, and binds them as one or more commands. Quotes are not expanded. |
=> | Consumes a variable number of values, and binds them as one or more commands. Quotes are not expanded. |
abs | Consume a number and produce its absolute value. |
alias | Consumes two commands, and binds the latter to the former. Any new definitions are preserved in the calling context. |
and | Consumes two boolean values. If both are true, produces true. Otherwise produces false. |
any | Consumes a sequence and a predicate. If the predicate applied to any value in the sequence is true, produces true. Otherwise produces false. |
as-quote | Consume a value. If it is already a quote, produce it. Otherwise, produce a quote containing only that value. |
assert-true | FIXME |
bool? | FIXME: Undocumented |
cd | Consume one string as a filename, and make that the process's current working directory. |
chars | FIXME: Undocumented |
choose | FIXME: Undocumented |
clear | When invoked in a terminal context, clears the screen. |
command? | FIXME: Undocumented |
concat | Consume two quotes or two strings and produce their concatenated value. |
contains? | Consume one string and one string as a substring. Produce true if the substring occurs in the original string, and false otherwise. |
def | FIXME: Undocumented |
def! | Consumes one quote and a quoted command or string. The latter quoted command or string becomes a command that executes the first quote. Any new definitions are preserved in the calling context. |
def? | Consumes a quote or command, and produces true when it is defined, and false otherwise. |
defs | Produce a list of all defined commands in the current context. |
deq | Consume a quote, and produce its first value and the quote with the first value removed. |
describe | Consumes a quoted command or command, and produces its description as a string. |
digits | Consume a number and produce a list of its decimal digits. |
dir? | Consume a string as a filename. Produce true if the filename references a directory, and false otherwise. |
divisor? | FIXME: Undocumented |
do | Consumes a quote or command and executes it, producing any output(s) of the quote or command. Any definitions are local only to the quote or command performed. |
do! | Consumes a quote or command and executes it, producing any output(s) of the quote or command. Any new definitions are preserved in the calling context. |
doin | Consumes one quote and one quote or command. The latter quote or command is executed inside the first quote, producing any output(s) of the quote or command inside it. Any definitions are local only to the quote or command performed. |
doin! | Consumes one quote and one quote or command. The latter quote or command is executed inside the first quote, producing any output(s) of the quote or command inside it. Any new definitions are preserved in the calling context. |
downcase | Consume a string and produce an identical string in all lowercase. |
downcase? | FIXME: Undocumented |
drop | Consume one value and discard it. |
dup | Consume one value and produce it two times. |
dup2 | Consume two values, and produce them two times. |
each | Consume one quote as a list and another quote as commands. Run the commands on each list, any definitions will NOT be preserved in the calling context. |
each! | Consume one quote as a list and another quote as commands. Run the commands on each list, any definitions will be preserved in the calling context. |
empty? | FIXME: Undocumented |
ends-with? | Consume one string and one string as a substring. Produce true if the substring is a suffix of the original string, and false otherwise. |
enq | Consume a value and a quote, and produce an identical quote with the value prepended. |
env | Produce a symbol table of all environment variables. |
envget | Consume a string as an environment key, and produce its value. |
envset | Consume a string as an environment key and a string as its value, and set it in the current environment. |
eq? | Consumes two values. If they're equal, produces true. Otherwise produces false. |
equal? | Consumes two values. If they're equal, produces true. Otherwise produces false. |
even? | FIXME: Undocumented |
exec | Consume a string as an executable name, and produce a symbol table with "status", "stdout" and "stderr" keys. |
extract | Consume a symbol table and a string as a key, produce an identical symbol table and the value relating to the key. |
f64? | FIXME: Undocumented |
false | The boolean value false. |
file? | Consume a string as a filename. Produce true if the filename references a file, and false otherwise. |
filter | Consume one quote as a list and another quote as a predicate, produce a list of all values from the original list that return true for the predicate. |
float-max | Produce the maximum floating-point value. |
float-min | Produce the minimum floating-point value. |
floor | Consume a number and produce its floor. |
greater-than? | Consumes two numbers. If the top value is greater, produces true. Otherwise produces false. |
greater? | Consumes two numbers. If the top value is greater, produces true. Otherwise produces false. |
gt? | Consumes two numbers. If the top value is greater, produces true. Otherwise produces false. |
gte? | Consumes two numbers. If the top value is greater or equal, produces true. Otherwise produces false. |
i64? | FIXME: Undocumented |
inequal? | Consumes two values. If they're not equal, produces true. Otherwise produces false. |
insert | Consume a symbol table and a quote as a key + value pair. Produce an identical symbol table with the key + value pair added. |
int-max | Produce the maximum integer value. |
int-min | Produce the minimum integer value. |
join | Consume a list of strings and a string separator. Produce a string with all strings in the original list joined with the separator. |
last | FIXME: Undocumented |
len | Consume a quote or string, and produce its length. |
length | Consume a quote or string, and produce its length. |
less-than? | Consumes two numbers. If the top value is lesser, produces true. Otherwise produces false. |
lesser? | Consumes two numbers. If the top value is lesser, produces true. Otherwise produces false. |
lines | FIXME: Undocumented |
ls | Produce a list of all the files and directories in the process's current working directory. |
lt? | Consumes two numbers. If the top value is lesser, produces true. Otherwise produces false. |
lte? | Consumes two numbers. If the top value is lesser or equal, produces true. Otherwise produces false. |
map | Consume one quote as a list and another quote as a transform, produce a list of all values from the original list after applying the transformation. |
max | FIXME: Undocumented |
maximum | FIXME: Undocumented |
min | FIXME: Undocumented |
minimum | FIXME: Undocumented |
mkdir | Consume a string as a filename, and create a directory with that name. |
mod | Consume two numbers and produce their remainder. |
negate | Consume a number and produce its negation. |
neq? | Consumes two values. If they're not equal, produces true. Otherwise produces false. |
nl | Prints a newline. |
none | FIXME: Undocumented |
not | Consumes one boolean value and produces its inverse. |
not-equal? | Consumes two values. If they're not equal, produces true. Otherwise produces false. |
nth | Consume a quote and an integer, and produce the element at the 0-indexed location specified. |
odd? | FIXME: Undocumented |
opt | Consumes a specially-formed quote of quotes. The quote of quotes is
evaluated by twos, with the first quote as a predicate and the second
as an action to perform. Predicates will be evaluated until a predicate
produces true. Only the action following the first true predicate will
be executed. If no predicates match, no actions will be performed. |
or | Consumes two boolean values. If either are true, produces true. Otherwise produces false. |
otherwise | The boolean value true. |
p | Consumes one value and prints it. |
pl | Consumes one value, prints it, and prints a newline. |
pls | FIXME: Undocumented |
pop | Consume a quote, and produce a quote (with the last element removed) and the quote's last element. |
print | Consumes one value and prints it. |
println | Consumes one value, prints it, and prints a newline. |
printlns | FIXME: Undocumented |
prune | FIXME: Undocumented |
push | Consume a quote and a value, and produce an identical quote with the value appended. |
pwd | Produce the process's current working directory. |
quote | Consume a value, and produce a quote containing only that value. |
quote-all | Go "up" a context, leaving the program's previous state as a quotation. |
quote? | FIXME: Undocumented |
range | FIXME: Undocumented |
readf | Consume a string as a filename, and produce that file's lines as a list of strings. |
rev | Consume a quote or string, and produce its reverse. |
rot | Consume three values, and produce them rotated once. |
split | Consume a string and a string as a separator. Produce a list of terms from the first string split on the separator. |
sqrt | Consume a number and produce its square root. |
stab | Produce a new, empty symbol table. |
stab? | FIXME: Undocumented |
starts-with? | Consume one string and one string as a substring. Produce true if the substring is a prefix of the original string, and false otherwise. |
status | Prints the current status of the program. |
stdin | Read standard input and produce a list of lines. |
string? | FIXME: Undocumented |
swap | Consume two values, and produce them in reverse order. |
times | Consume a quotation and an integer, and perform the quotation the specified number of times. |
to-string | Consume one value and produce a string representation of it. |
trim | Consume a string and produce an identical string with all leading and trailing whitespace removed. |
true | The boolean value true. |
type | Consume a value and produce the name (a string) of its type. |
undef? | FIXME: Undocumented |
unlines | FIXME: Undocumented |
unquote | Consume a quote, and produce its values. |
unwords | FIXME: Undocumented |
upcase | Consume a string and produce an identical string in all uppercase. |
upcase? | FIXME: Undocumented |
version | Produces the version of dt currently in use. |
while | FIXME: Undocumented |
words | FIXME: Undocumented |
writef | Consume a string as a filename and a string as file contents. The contents are written to the file. |
zip | Consume two quotes as lists, and produce a list of pairs of values. The result as short as the shortest list; additional values from a longer list will be discarded. |
zip-with | Consume two quotes as lists and one quote as a list of commands. Produce a list of values that are the pairwise application of the commands to values in the original list. The result as short as the shortest list; additional values from a longer list will be discarded. |