Errors
bail
Triggers an error.
ensure
Triggers an error when an assertion fails.
todo
Triggers an error with a "not yet implemented" message.
dbg
Prints its arguments, formatted for debugging.
try
Captures errors with a brief error message.
try-verbose
Captures errors with a verbose error message.
file-location
Returns a string describing the current file and line number.
stack-trace
Returns a string describing the current call-stack.
Equality
eq?
Returns #t
if all of its arguments are equal to one another.
same?
Returns #t
if all of its arguments share the same identity.
==any?
Returns #t
if its first argument is numerically equal to any other argument.
eq-any?
Returns #t
if its first argument is equal to any other argument.
same-any?
Returns #t
if its first argument has the same identity as any other argument.
Cloning
clone
Returns a shallow copy of its argument.
deep-clone
Returns a deep, recursive copy of its argument.
Freezing
freeze!
Freezes a collection so that it can no longer be mutated.
deep-freeze!
Recursively freezes a tree of collections.
freed?
Returns #t
if an RData
has been freed.
Time
time
Generates a high-precision timestamp.
sleep
Sleeps the current thread for the given number of seconds.
unix-time
Returns the number of seconds elapsed since the UNIX epoch, as a string.