ListTalk Base Environment
256 direct bindings from a fresh base environment.
| Name | Kind | Binding |
|---|---|---|
%modules | Nil | mutable |
%self-slot | macro | constant |
* | primitive | constant |
+ | primitive | constant |
- | primitive | constant |
/ | primitive | constant |
< | primitive | constant |
<= | primitive | constant |
= | primitive | constant |
> | primitive | constant |
>= | primitive | constant |
BigInteger | class | constant |
BindingDescriptor | class | constant |
Boolean | class | constant |
ByteVector | class | constant |
Character | class | constant |
Class | class | constant |
Closure | class | constant |
ComplexNumber | class | constant |
CompoundForm | class | constant |
Condition | class | constant |
DateTime | class | constant |
Dictionary | class | constant |
Duration | class | constant |
DynamicVariable | class | constant |
Environment | class | constant |
Error | class | constant |
ExactComplexNumber | class | constant |
FileStream | class | constant |
Float | class | constant |
Fraction | class | constant |
Function | class | constant |
IdentityDictionary | class | constant |
IdentitySet | class | constant |
ImmutableDictionary | class | constant |
ImmutableList | class | constant |
IncompleteInputSyntaxError | class | constant |
InexactComplexNumber | class | constant |
Instant | class | constant |
Integer | class | constant |
InvocationContextKind | class | constant |
List | class | constant |
Macro | class | constant |
Message | class | constant |
MethodDescriptor | class | constant |
MutablePair | class | constant |
Nil | class | constant |
Number | class | constant |
Object | class | constant |
Package | class | constant |
Pair | class | constant |
Primitive | class | constant |
Printer | class | constant |
RationalNumber | class | constant |
Reader | class | constant |
ReaderError | class | constant |
RealNumber | class | constant |
Set | class | constant |
SmallFraction | class | constant |
SmallInteger | class | constant |
SpecialForm | class | constant |
Stream | class | constant |
String | class | constant |
SubclassResponsibilityError | class | constant |
Symbol | class | constant |
SystemError | class | constant |
UTCDateTime | class | constant |
Vector | class | constant |
Warning | class | constant |
WeakIdentitySet | class | constant |
WeakKeyIdentityDictionary | class | constant |
WeakReference | class | constant |
WeakValueIdentityDictionary | class | constant |
abs | primitive | constant |
alist->plist | primitive | constant |
and | special form | constant |
any | primitive | constant |
append | primitive | constant |
apply | primitive | constant |
assoc | primitive | constant |
assq | primitive | constant |
assv | primitive | constant |
begin | special form | constant |
boolean? | primitive | constant |
bytevector | primitive | constant |
bytevector->string | primitive | constant |
bytevector-append | primitive | constant |
bytevector-copy | primitive | constant |
bytevector-length | primitive | constant |
bytevector-u8-ref | primitive | constant |
bytevector-u8-set! | primitive | constant |
bytevector? | primitive | constant |
caaaar | primitive | constant |
caaadr | primitive | constant |
caaar | primitive | constant |
caadar | primitive | constant |
caaddr | primitive | constant |
caadr | primitive | constant |
caar | primitive | constant |
cadaar | primitive | constant |
cadadr | primitive | constant |
cadar | primitive | constant |
caddar | primitive | constant |
cadddr | primitive | constant |
caddr | primitive | constant |
cadr | primitive | constant |
car | primitive | constant |
catch | special form | constant |
cdaaar | primitive | constant |
cdaadr | primitive | constant |
cdaar | primitive | constant |
cdadar | primitive | constant |
cdaddr | primitive | constant |
cdadr | primitive | constant |
cdar | primitive | constant |
cddaar | primitive | constant |
cddadr | primitive | constant |
cddar | primitive | constant |
cdddar | primitive | constant |
cddddr | primitive | constant |
cdddr | primitive | constant |
cddr | primitive | constant |
cdr | primitive | constant |
ceiling | primitive | constant |
character? | primitive | constant |
class-slots | primitive | constant |
class? | primitive | constant |
closure? | primitive | constant |
complex? | primitive | constant |
cond | special form | constant |
cons | primitive | constant |
cos | primitive | constant |
define | macro | constant |
define-class | macro | constant |
define-constructor | macro | constant |
define-macro | macro | mutable |
define-method | macro | constant |
define-package | primitive | constant |
display | primitive | constant |
dynamic-let | macro | constant |
environment? | primitive | constant |
eq? | primitive | constant |
equal? | primitive | constant |
eqv? | primitive | constant |
error | primitive | constant |
eval | primitive | constant |
every | primitive | constant |
expt | primitive | constant |
floor | primitive | constant |
fold-expression | primitive | constant |
fold-left | primitive | constant |
fold-right | primitive | constant |
for-each | primitive | constant |
format | primitive | constant |
function? | primitive | constant |
gensym | primitive | constant |
get-current-environment | special form | constant |
handler-bind | special form | constant |
if | special form | constant |
in-package | primitive | constant |
integer? | primitive | constant |
keyword? | primitive | constant |
lambda | macro | constant |
length | primitive | constant |
let | macro | constant |
let* | macro | constant |
letrec | special form | constant |
list | primitive | constant |
list->string | primitive | constant |
list->vector | primitive | constant |
list-ref | primitive | constant |
list? | primitive | constant |
load! | macro | constant |
log | primitive | constant |
macro | special form | constant |
macro? | primitive | constant |
macroexpand | primitive | constant |
make-bytevector | primitive | constant |
make-class | primitive | constant |
make-instance | primitive | constant |
make-vector | primitive | constant |
map | primitive | constant |
max | primitive | constant |
memq | primitive | constant |
min | primitive | constant |
module-resolvers | MutablePair | mutable |
negative? | primitive | constant |
not | primitive | constant |
null? | primitive | constant |
number->string | primitive | constant |
number? | primitive | constant |
or | special form | constant |
pair? | primitive | constant |
phase | primitive | constant |
pi | Float | constant |
plist->alist | primitive | constant |
positive? | primitive | constant |
primitive? | primitive | constant |
provide | macro | constant |
quasiquote | special form | constant |
quote | special form | constant |
rational? | primitive | constant |
read | primitive | constant |
read-file-as-data | primitive | constant |
read-string-as-data | primitive | constant |
real? | primitive | constant |
reduce-left | primitive | constant |
reduce-right | primitive | constant |
require | macro | constant |
reverse | primitive | constant |
round | primitive | constant |
send | macro | constant |
set! | macro | constant |
sin | primitive | constant |
slot-ref | primitive | constant |
slot-set! | primitive | constant |
special-form? | primitive | constant |
sqrt | primitive | constant |
string->bytevector | primitive | constant |
string->list | primitive | constant |
string-append | primitive | constant |
string-join | primitive | constant |
string-length | primitive | constant |
string-ref | primitive | constant |
string? | primitive | constant |
substring | primitive | constant |
symbol-name | primitive | constant |
symbol? | primitive | constant |
tan | primitive | constant |
throw | special form | constant |
truncate | primitive | constant |
type-of | primitive | constant |
unless | macro | constant |
unwind-protect | special form | constant |
use-package | primitive | constant |
vector | primitive | constant |
vector->list | primitive | constant |
vector-length | primitive | constant |
vector-ref | primitive | constant |
vector-set! | primitive | constant |
vector? | primitive | constant |
when | macro | constant |
while | macro | constant |
with-gensyms | macro | constant |
zero? | primitive | constant |
ListTalk-implementation:%define | special form | constant |
ListTalk-implementation:%define-constant | special form | constant |
ListTalk-implementation:%dynamic-ref | primitive | constant |
ListTalk-implementation:%lambda | special form | constant |
ListTalk-implementation:%let | special form | constant |
ListTalk-implementation:%load! | primitive | constant |
ListTalk-implementation:%require | primitive | constant |
ListTalk-implementation:%send | special form | constant |
ListTalk-implementation:%set! | special form | constant |
ListTalk-implementation:%super-send | special form | constant |
ListTalk-implementation:%while | special form | constant |
Documentation
%self-slot
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:slot-name)
*
- Kind
- primitive
- Binding
- constant
- Lambda list
(n (%self-slot ..))
Return product of numeric arguments.
+
- Kind
- primitive
- Binding
- constant
- Lambda list
(n (%self-slot ..))
Return sum of numeric arguments.
-
- Kind
- primitive
- Binding
- constant
- Lambda list
(n (send n :...))
Negate one value or subtract remaining values from first.
/
- Kind
- primitive
- Binding
- constant
- Lambda list
(n n (%self-slot ..))
Divide first value by remaining values.
<
- Kind
- primitive
- Binding
- constant
- Lambda list
(n n (%self-slot ..))
Return true when numeric arguments are in strictly ascending order.
<=
- Kind
- primitive
- Binding
- constant
- Lambda list
(n n (%self-slot ..))
Return true when numeric arguments are in non-descending order.
=
- Kind
- primitive
- Binding
- constant
- Lambda list
(n n (%self-slot ..))
Return true when all numeric arguments are equal.
>
- Kind
- primitive
- Binding
- constant
- Lambda list
(n n (%self-slot ..))
Return true when numeric arguments are in strictly descending order.
>=
- Kind
- primitive
- Binding
- constant
- Lambda list
(n n (%self-slot ..))
Return true when numeric arguments are in non-ascending order.
BigInteger
- Kind
- class
- Binding
- constant
Arbitrary-precision exact integer value.
Direct methods
None.
Direct class methods
None.
BindingDescriptor
- Kind
- class
- Binding
- constant
Immutable description of an environment binding.
Direct methods
:<(self ListTalk-implementation:other):<=(self ListTalk-implementation:other):>(self ListTalk-implementation:other):>=(self ListTalk-implementation:other):compareWith:(self ListTalk-implementation:other):constant?(self)Return true when binding is constant.
:flags(self)Return binding flags.
:symbol(self)Return binding symbol.
:value(self)Return binding value.
Direct class methods
None.
Boolean
- Kind
- class
- Binding
- constant
Truth values #true and #false.
Direct methods
None.
Direct class methods
None.
ByteVector
- Kind
- class
- Binding
- constant
Mutable indexed sequence of bytes.
Direct methods
:<(self other)Return true when receiver is lexicographically less than argument.
:<=(self other)Return true when receiver is lexicographically less than or equal to argument.
:>(self other)Return true when receiver is lexicographically greater than argument.
:>=(self other)Return true when receiver is lexicographically greater than or equal to argument.
:append:(self other)Return a new bytevector with other appended.
:asList(self)Return bytevector bytes as a list of unsigned fixnums.
:asString(self)Return a string decoded from this bytevector.
:at:(self index)Return byte at index as an unsigned fixnum.
:at:put:(self index byte)Set byte at index and return byte as an unsigned fixnum.
:compareWith:(self other)Return -1, 0, or 1 when receiver is lexicographically less than, equal to, or greater than argument.
:from:to:(self from to)Return a bytevector slice using half-open byte indexes.
:length(self)Return bytevector length in bytes.
:splitLines(self)Return bytevector lines without line terminators.
:writeToFile:(self filename)Write bytevector to a file atomically and return filename.
Direct class methods
:fromFile:(self filename)Return file contents as a bytevector.
Character
- Kind
- class
- Binding
- constant
Unicode scalar character value.
Direct methods
:asString(self)Return receiver encoded as a one-character UTF-8 string.
Direct class methods
None.
Class
- Kind
- class
- Binding
- constant
Runtime representation of classes and metaclasses.
Direct methods
:>>(self selector)Return direct method for selector or nil.
:addMethod:withSelector:(self method selector)Add direct method for selector.
:allMethodsAsList(self)Return most-specific direct and inherited method descriptors as a list.
:allMethodsDo:(self callable)Call callable for each most-specific method descriptor.
:allSelectors(self)Return direct and inherited method selectors.
:allSelectorsAsList(self)Return direct and inherited method selectors as a list.
:alloc(self)Allocate empty instance for allocatable class.
:documentation(self)Return class documentation.
:lookupSelector:(self selector)Return resolved method for selector or nil.
:methodsAsList(self)Return direct method descriptors as a list.
:methodsDo:(self callable)Call callable for each direct method descriptor.
:precedenceList(self)Return class precedence list.
:selectors(self)Return direct method selectors.
:selectorsAsList(self)Return direct method selectors as a list.
:slots(self)Return class slot names.
Direct class methods
None.
Closure
- Kind
- class
- Binding
- constant
Callable function object with captured environment.
Direct methods
:arguments(self)Return closure parameter list.
:documentation(self)Return closure documentation.
Direct class methods
None.
ComplexNumber
- Kind
- class
- Binding
- constant
Abstract root for complex numeric values.
Direct methods
:imaginary(self)Return receiver's imaginary component. Subclasses must implement this method.
:real(self)Return receiver's real component. Subclasses must implement this method.
Direct class methods
None.
CompoundForm
- Kind
- class
- Binding
- constant
Abstract root for compound syntactic and callable forms.
Direct methods
:arguments(self)Return compound form argument documentation. Subclasses must implement this method.
:documentation(self)Return compound form documentation. Subclasses must implement this method.
Direct class methods
None.
Condition
- Kind
- class
- Binding
- constant
Base class for signaled conditions.
Direct methods
None.
Direct class methods
None.
DateTime
- Kind
- class
- Binding
- constant
Calendar date and wall-clock time.
Direct methods
:asISO8601(self)Return receiver formatted as ISO8601 text. Subclasses must implement this method.
:asISO8601WithSeparator:(self separator)Return receiver formatted as ISO8601 text with separator. Subclasses must implement this method.
:asInstant(self)Return receiver converted to an Instant. Subclasses must implement this method.
:day(self)Return date-time day. Subclasses must implement this method.
:hour(self)Return date-time hour. Subclasses must implement this method.
:microsecond(self)Return date-time microsecond. Subclasses must implement this method.
:minute(self)Return date-time minute. Subclasses must implement this method.
:month(self)Return date-time month. Subclasses must implement this method.
:second(self)Return date-time second. Subclasses must implement this method.
:year(self)Return date-time year. Subclasses must implement this method.
Direct class methods
None.
Dictionary
- Kind
- class
- Binding
- constant
Mutable mapping from keys to values.
Direct methods
:at:put:(self key value)Set value for key and return value.
:remove:(self key)Remove key and return its value, or nil when key is absent.
Direct class methods
:new(self)Return a new empty dictionary.
:newFromAList:(self alist)Return a dictionary initialized from an association list.
Duration
- Kind
- class
- Binding
- constant
Signed span of time.
Direct methods
:+(self duration-or-instant)Add a duration or advance an instant by receiver.
:-(self other)Return difference of receiver and another duration.
:addDuration:(self other)Return sum of receiver and another duration.
:asMicroseconds(self)Return receiver as microseconds.
:asSeconds(self)Return receiver as seconds.
:substractDuration:(self other)Return difference of receiver and another duration.
Direct class methods
:fromMicroseconds:(self microseconds)Return a duration from microseconds.
:fromSeconds:(self seconds)Return a duration from seconds.
DynamicVariable
- Kind
- class
- Binding
- constant
Dynamically scoped variable binding.
Direct methods
:value(self)Return the current dynamic value or the default value.
:value:(self value)Set the current thread dynamic value.
Direct class methods
:new:(self defaultValue)Create a dynamic variable with default value.
Environment
- Kind
- class
- Binding
- constant
Mapping from names to values during evaluation.
Direct methods
:at:(self symbol)Return symbol value, or nil when symbol is unbound.
:at:put:(self symbol value)Bind symbol to value in this environment and return value.
:at:putConstant:(self symbol value)Bind symbol to a constant value in this environment and return value.
:bindingsAsList(self)Return direct binding reflections as a list.
:bindingsDo:(self callable)Call callable for each direct binding reflection.
:constant?:(self symbol)Return true when symbol resolves to a constant binding.
:contains?:(self symbol)Return true when symbol is bound in this environment or its parents.
Direct class methods
:new(self)Return a new empty environment.
:newBase(self)Return a new base environment.
:newWithParent:(self parent)Return a new environment with parent.
:sharedBase(self)Return the shared base environment.
Error
- Kind
- class
- Binding
- constant
Fatal condition reported to handlers.
Direct methods
None.
Direct class methods
None.
ExactComplexNumber
- Kind
- class
- Binding
- constant
Complex number with exact real and imaginary parts.
Direct methods
:imaginary(self)Return receiver's imaginary component.
:real(self)Return receiver's real component.
Direct class methods
None.
FileStream
- Kind
- class
- Binding
- constant
Stream backed by a file descriptor.
Direct methods
:close(self)Close stream.
:flush(self)Flush buffered stream data.
:isClosed(self)Return true when file stream is closed.
:isReadable(self)Return true when file stream supports reading.
:isWritable(self)Return true when file stream supports writing.
:readByte(self)Read one byte as an unsigned fixnum, or nil at EOF.
:readByteVector(self)Read remaining stream bytes into a bytevector.
:readBytes:(self length)Read up to length bytes.
:readLine(self)Read a line without its line terminator.
:readString(self)Read remaining stream bytes as UTF-8 text with normalized line endings.
:seek:(self offset)Seek from current stream position.
:seekFromEnd:(self offset)Seek from end of stream.
:seekFromStart:(self offset)Seek from start of stream.
:writeByte:(self byte)Write one byte.
:writeByteVector:(self bytevector)Write bytevector bytes.
:writeCharacter:(self character)Write one character as UTF-8.
:writeLn(self)Write a line feed byte.
:writeString:(self string)Write string UTF-8 bytes.
Direct class methods
:new:(self filename)Open a file stream.
:newForAppending:(self filename)Open a file stream.
:newForInput:(self filename)Open a file stream.
:newForOutput:(self filename)Open a file stream.
Float
- Kind
- class
- Binding
- constant
Inexact floating-point real number.
Direct methods
None.
Direct class methods
None.
Fraction
- Kind
- class
- Binding
- constant
Exact rational number with arbitrary-precision parts.
Direct methods
None.
Direct class methods
None.
Function
- Kind
- class
- Binding
- constant
Abstract root for callable functions.
Direct methods
None.
Direct class methods
None.
IdentityDictionary
- Kind
- class
- Binding
- constant
Dictionary whose keys are compared by identity.
Direct methods
:asAList(self)Return dictionary entries as an association list.
:at:(self key)Return value for key, or nil when key is absent.
:at:put:(self key value)Set value for key and return value.
:contains?:(self key)Return true when dictionary contains key.
:forEach:(self callable)Apply callable to each key and value, and return nil.
:map:(self callable)Return list of callable results for each key and value.
:remove:(self key)Remove key and return its value, or nil when key is absent.
:size(self)Return dictionary size.
Direct class methods
:new(self)Return a new empty identity dictionary.
:newFromAList:(self alist)Return an identity dictionary initialized from an association list.
IdentitySet
- Kind
- class
- Binding
- constant
Set of unique values compared by identity.
Direct methods
None.
Direct class methods
:fromList:(self list)Return an identity set containing the unique identities of list.
:new(self)Return a new empty identity set.
ImmutableDictionary
- Kind
- class
- Binding
- constant
Immutable mapping from keys to values.
Direct methods
:asAList(self)Return dictionary entries as an association list.
:at:(self key)Return value for key, or nil when key is absent.
:contains?:(self key)Return true when dictionary contains key.
:forEach:(self callable)Apply callable to each key and value, and return nil.
:map:(self callable)Return list of callable results for each key and value.
:size(self)Return dictionary size.
Direct class methods
:new(self)Return a new empty immutable dictionary.
:newFromAList:(self alist)Return an immutable dictionary initialized from an association list.
ImmutableList
- Kind
- class
- Binding
- constant
Immutable linked list node.
Direct methods
:car(self)Return immutable list car.
:cdr(self)Return immutable list cdr.
Direct class methods
:fromList:(self list)Return an immutable list copy of list.
IncompleteInputSyntaxError
- Kind
- class
- Binding
- constant
Reader error for syntactically incomplete input.
Direct methods
None.
Direct class methods
None.
InexactComplexNumber
- Kind
- class
- Binding
- constant
Complex number with inexact real and imaginary parts.
Direct methods
:imaginary(self)Return receiver's imaginary component.
:real(self)Return receiver's real component.
Direct class methods
None.
Instant
- Kind
- class
- Binding
- constant
Absolute point in time.
Direct methods
:+(self duration)Return receiver advanced by duration.
:-(self duration-or-instant)Subtract a duration or return duration since another instant.
:afterDuration:(self duration)Return receiver advanced by duration.
:asMicroseconds(self)Return receiver as UTC microseconds since the Unix epoch.
:asSeconds(self)Return receiver as UTC seconds since the Unix epoch.
:beforeDuration:(self duration)Return receiver moved backward by duration.
:durationSince:(self other)Return duration from other instant to receiver.
:durationUntil:(self other)Return duration from receiver to other instant.
Direct class methods
:fromMicroseconds:(self microseconds)Return an instant from UTC microseconds since the Unix epoch.
:fromSeconds:(self seconds)Return an instant from UTC seconds since the Unix epoch.
:now(self)Return the current instant.
Integer
- Kind
- class
- Binding
- constant
Abstract root for exact integer values.
Direct methods
:toBytes(self)Return the shortest big-endian unsigned byte representation of receiver.
:toBytes:(self byte-count)Return a big-endian unsigned byte representation with byte-count bytes.
:toTwosComplement(self)Return the shortest big-endian two's-complement byte representation of receiver.
:toTwosComplement:(self byte-count)Return a big-endian two's-complement byte representation with byte-count bytes.
Direct class methods
:fromBytes:(self bytevector)Return an integer decoded from big-endian unsigned bytes.
:fromTwosComplement:(self bytevector)Return an integer decoded from big-endian two's-complement bytes.
InvocationContextKind
- Kind
- class
- Binding
- constant
Kind tag for invocation context records.
Direct methods
None.
Direct class methods
None.
List
- Kind
- class
- Binding
- constant
Abstract root for linked list values.
Direct methods
:any:(self callable)Return true when callable returns truthy for any element.
:asList(self)Return receiver.
:at:(self index)Return list item at index.
:every:(self callable)Return true when callable returns truthy for every element.
:forEach:(self callable)Apply callable to each element and return nil.
:inject:into:(self initial callable)Fold list from the left with initial value and callable.
:length(self)Return list length.
:map:(self callable)Return list of callable results for each element.
:reduce:(self callable)Reduce list from the left with callable.
:sort(self)Return a fresh list sorted with element compareWith:.
:sortUsing:(self callable)Return a fresh list sorted with a two-argument comparator.
Direct class methods
None.
Macro
- Kind
- class
- Binding
- constant
Source transformation invoked during evaluation.
Direct methods
:arguments(self):documentation(self)
Direct class methods
None.
Message
- Kind
- class
- Binding
- constant
Object message selector and arguments.
Direct methods
:arguments(self)Return message arguments.
:receiver(self)Return message receiver.
:selector(self)Return message selector.
Direct class methods
None.
MethodDescriptor
- Kind
- class
- Binding
- constant
Immutable description of a class method.
Direct methods
:<(self ListTalk-implementation:other):<=(self ListTalk-implementation:other):>(self ListTalk-implementation:other):>=(self ListTalk-implementation:other):callable(self)Return method callable.
:compareWith:(self ListTalk-implementation:other):implementing-class(self)Return class that directly implements the method.
:selector(self)Return method selector.
Direct class methods
None.
MutablePair
- Kind
- class
- Binding
- constant
Mutable cons pair containing car and cdr.
Direct methods
:car:(self value)Set pair car.
:cdr:(self value)Set pair cdr.
Direct class methods
None.
Nil
- Kind
- class
- Binding
- constant
The distinguished empty-list and falsey nil value.
Direct methods
None.
Direct class methods
None.
Number
- Kind
- class
- Binding
- constant
Abstract root for numeric values.
Direct methods
:*(self other)Return product of receiver and argument.
:+(self other)Return sum of receiver and argument.
:-(self other)Return difference of receiver and argument.
:/(self other)Return quotient of receiver divided by argument.
:<(self other)Return true when receiver is less than argument.
:<=(self other)Return true when receiver is less than or equal to argument.
:=(self other)Return true when receiver equals argument numerically.
:>(self other)Return true when receiver is greater than argument.
:>=(self other)Return true when receiver is greater than or equal to argument.
:abs(self)Return receiver's magnitude.
:asString(self)Return receiver formatted as a string.
:ceiling(self)Return least integer not less than receiver.
:compareWith:(self other)Return -1, 0, or 1 when receiver is less than, equal to, or greater than argument.
:cos(self)Return cosine of receiver.
:expt(self)Return e raised to receiver.
:expt:(self exponent)Return receiver raised to exponent.
:floor(self)Return greatest integer not greater than receiver.
:log(self)Return natural logarithm of receiver.
:max:(self other)Return larger of receiver and argument.
:min:(self other)Return smaller of receiver and argument.
:negative?(self)Return true when receiver is less than zero.
:phase(self)Return receiver's principal phase angle.
:positive?(self)Return true when receiver is greater than zero.
:round(self)Return nearest integer to receiver, rounding halfway values away from zero.
:sin(self)Return sine of receiver.
:sqrt(self)Return principal square root of receiver.
:tan(self)Return tangent of receiver.
:truncate(self)Return receiver truncated toward zero as an integer.
:zero?(self)Return true when receiver is numerically zero.
Direct class methods
None.
Object
- Kind
- class
- Binding
- constant
Root of the object hierarchy.
Direct methods
:=(self other)Return true when receiver and argument are structurally equal (equal?).
:==(self other)Return true when receiver and argument are identical (same object).
:asString(self)Return receiver debug-printed as a string.
:class(self)Return receiver class.
:doesNotUnderstand:(self message)Signal that the receiver does not understand message.
:slot:(self slot)Read receiver slot.
:slot:put:(self slot value)Write receiver slot.
:subclassResponsibility(self)Signal that the receiver's class must implement this method. Subclasses must implement this method.
Direct class methods
None.
Package
- Kind
- class
- Binding
- constant
Namespace for interned symbols.
Direct methods
:<(self other)Return true when receiver name is lexicographically less than argument name.
:<=(self other)Return true when receiver name is lexicographically less than or equal to argument name.
:>(self other)Return true when receiver name is lexicographically greater than argument name.
:>=(self other)Return true when receiver name is lexicographically greater than or equal to argument name.
:compareWith:(self other)Return -1, 0, or 1 when receiver name is lexicographically less than, equal to, or greater than argument name.
:name(self)Return package name.
:symbolsAsList(self)Return local interned symbols as a list.
:symbolsDo:(self callable)Call callable for each local interned symbol.
Direct class methods
:find:(self name)Return package with the provided name, or nil when no such package exists.
:named:(self name)Return package with the provided name, creating it when needed.
:packagesAsList(self)Return packages as a list.
:packagesDo:(self callable)Call callable for each package.
Pair
- Kind
- class
- Binding
- constant
Immutable cons pair containing car and cdr.
Direct methods
:car(self)Return pair car.
:cdr(self)Return pair cdr.
Direct class methods
None.
Primitive
- Kind
- class
- Binding
- constant
Callable function implemented in native code.
Direct methods
:arguments(self)Return primitive argument list, or the raw argument string if it cannot be read.
:documentation(self)Return primitive documentation.
Direct class methods
None.
Printer
- Kind
- class
- Binding
- constant
Renderer for printing ListTalk values.
Direct methods
None.
Direct class methods
None.
RationalNumber
- Kind
- class
- Binding
- constant
Abstract root for exact rational numbers.
Direct methods
None.
Direct class methods
None.
Reader
- Kind
- class
- Binding
- constant
Parser for ListTalk source forms.
Direct methods
None.
Direct class methods
None.
ReaderError
- Kind
- class
- Binding
- constant
Error signaled while reading source text.
Direct methods
None.
Direct class methods
None.
RealNumber
- Kind
- class
- Binding
- constant
Abstract root for real numeric values.
Direct methods
:asFloat(self)Return receiver converted to a float.
Direct class methods
None.
Set
- Kind
- class
- Binding
- constant
Collection of unique values compared by equality.
Direct methods
:any:(self callable)Return true when callable returns truthy for any element.
:asList(self)Return set elements as a list.
:contains?:(self value)Return true when set contains value.
:every:(self callable)Return true when callable returns truthy for every element.
:forEach:(self callable)Apply callable to each element and return nil.
:inject:into:(self initial callable)Fold set with initial value and callable.
:put:(self value)Add value to set and return it.
:reduce:(self callable)Reduce set with callable.
Direct class methods
:fromList:(self list)Return a set containing the unique elements of list.
:new(self)Return a new empty set.
SmallFraction
- Kind
- class
- Binding
- constant
Compact exact rational number with small integer parts.
Direct methods
None.
Direct class methods
None.
SmallInteger
- Kind
- class
- Binding
- constant
Immediate exact integer value fitting in a machine word.
Direct methods
None.
Direct class methods
None.
SpecialForm
- Kind
- class
- Binding
- constant
Evaluator form with special argument rules.
Direct methods
:arguments(self)Return special form argument list, or the raw argument string if it cannot be read.
:documentation(self)Return special form documentation.
Direct class methods
None.
Stream
- Kind
- class
- Binding
- constant
Abstract input and output byte stream.
Direct methods
:close(self)Close stream. Subclasses must implement this method.
:flush(self)Flush buffered stream data. Subclasses must implement this method.
:isClosed(self)Return true when stream is closed.
:isReadable(self)Return true when stream supports reading.
:isWritable(self)Return true when stream supports writing.
:readByte(self)Read one byte as an unsigned fixnum, or nil at EOF. Subclasses must implement this method.
:readByteVector(self)Read remaining stream bytes into a bytevector. Subclasses must implement this method.
:readBytes:(self length)Read up to length bytes. Subclasses must implement this method.
:readLine(self)Read a line without its line terminator. Subclasses must implement this method.
:readString(self)Read remaining stream bytes as UTF-8 text with normalized line endings. Subclasses must implement this method.
:seek:(self offset)Seek from current stream position. Subclasses must implement this method.
:seekFromEnd:(self offset)Seek from end of stream. Subclasses must implement this method.
:seekFromStart:(self offset)Seek from start of stream. Subclasses must implement this method.
:writeByte:(self byte)Write one byte. Subclasses must implement this method.
:writeByteVector:(self bytevector)Write bytevector bytes. Subclasses must implement this method.
:writeCharacter:(self character)Write one character as UTF-8. Subclasses must implement this method.
:writeLn(self)Write a line feed byte. Subclasses must implement this method.
:writeString:(self string)Write string UTF-8 bytes. Subclasses must implement this method.
Direct class methods
None.
String
- Kind
- class
- Binding
- constant
Immutable UTF-8 text string.
Direct methods
:<(self other)Return true when receiver is lexicographically less than argument.
:<=(self other)Return true when receiver is lexicographically less than or equal to argument.
:>(self other)Return true when receiver is lexicographically greater than argument.
:>=(self other)Return true when receiver is lexicographically greater than or equal to argument.
:append:(self other)Return a new string with other appended.
:asByteVector(self)Return a bytevector containing string UTF-8 bytes.
:asList(self)Return string characters as a list.
:asString(self)Return receiver.
:at:(self index)Return Unicode character at index.
:compareWith:(self other)Return -1, 0, or 1 when receiver is lexicographically less than, equal to, or greater than argument.
:contains?:(self needle)Return true when string contains needle.
:find:(self needle)Return first codepoint index of needle, or nil when absent.
:findAll:(self needle)Return all codepoint indices where needle occurs.
:from:to:(self from to)Return a substring using half-open Unicode code point indexes.
:join:(self strings)Join a list of strings using self as the delimiter.
:length(self)Return string length in Unicode code points.
:mapCharacters:(self dictionary)Return a new string mapping characters through a dictionary.
:replace:with:(self needle replacement)Return a new string replacing all occurrences of needle with replacement.
:replaceFirst:with:(self needle replacement)Return a new string replacing the first occurrence of needle with replacement.
:splitLines(self)Return string lines without line terminators.
:splitOn:(self delimiters)Return substrings split on a delimiter character, delimiter string, or set of characters.
:splitOn:do:(self delimiters callable)Call callable for substrings split on a delimiter character, delimiter string, or set of characters.
:startsWith?:(self prefix)Return true when string starts with prefix.
:substringFrom:to:(self from to)Return a substring using half-open Unicode code point indexes.
:substrings(self)Return non-empty substrings split on whitespace.
:substrings:(self delimiter)Return substrings split on delimiter string, including empty substrings.
:substrings:do:(self delimiter callable)Call callable for each substring split on delimiter string.
:substringsDo:(self callable)Call callable for each non-empty substring split on whitespace.
:writeToFile:(self filename)Write string to a file atomically and return filename.
Direct class methods
:fromFile:(self filename)Return file contents as a string.
SubclassResponsibilityError
- Kind
- class
- Binding
- constant
Error signaled when an abstract method is not overridden.
Direct methods
None.
Direct class methods
None.
Symbol
- Kind
- class
- Binding
- constant
Interned symbolic name.
Direct methods
:<(self other)Return true when receiver sorts before argument by package then local name.
:<=(self other)Return true when receiver sorts before or with argument by package then local name.
:>(self other)Return true when receiver sorts after argument by package then local name.
:>=(self other)Return true when receiver sorts after or with argument by package then local name.
:compareWith:(self other)Return -1, 0, or 1 when receiver sorts before, with, or after argument by package then local name.
:keyword?(self)Return true when symbol is in the keyword package.
:name(self)Return symbol name as string.
:nameStartsWith?:(self prefix)Return true when symbol name starts with prefix.
:package(self)Return symbol package, or nil for uninterned symbols.
Direct class methods
:gensym(self [name])Return a fresh gensym or named uninterned symbol.
:intern:in:(self name package)Return interned symbol with name in package.
:keyword:(self name)Return interned keyword symbol with name.
:uninterned:(self name)Return a fresh uninterned symbol with the provided name.
SystemError
- Kind
- class
- Binding
- constant
Error representing an operating system failure.
Direct methods
None.
Direct class methods
None.
UTCDateTime
- Kind
- class
- Binding
- constant
Calendar date and time in UTC.
Direct methods
:asISO8601(self)Return receiver formatted as ISO8601 UTC text.
:asISO8601WithSeparator:(self separator)Return receiver formatted as ISO8601 UTC text with separator.
:asInstant(self)Return receiver converted to an Instant.
:day(self)Return UTC date-time day.
:hour(self)Return UTC date-time hour.
:microsecond(self)Return UTC date-time microsecond.
:minute(self)Return UTC date-time minute.
:month(self)Return UTC date-time month.
:second(self)Return UTC date-time second.
:year(self)Return UTC date-time year.
Direct class methods
:fromISO8601:(self string)Return UTC date-time parsed from simple ISO8601 text.
:fromInstant:(self instant)Return UTC date-time representing instant.
:fromYear:month:day:hour:minute:second:microsecond:(self year month day hour minute second microsecond)Return UTC date-time from component fields.
Vector
- Kind
- class
- Binding
- constant
Mutable indexed sequence of object values.
Direct methods
:asList(self)Return vector elements as a list.
:at:(self index)Return vector item at index.
:at:put:(self index value)Set vector item at index.
:length(self)Return vector length.
:sort(self)Return a fresh vector sorted with element compareWith:.
:sortUsing:(self callable)Return a fresh vector sorted with a two-argument comparator.
Direct class methods
None.
Warning
- Kind
- class
- Binding
- constant
Non-fatal condition reported to handlers.
Direct methods
None.
Direct class methods
None.
WeakIdentitySet
- Kind
- class
- Binding
- constant
Identity set that does not keep members alive.
Direct methods
None.
Direct class methods
:fromList:(self list)Return a weak identity set containing the unique identities of list.
:new(self)Return a new empty weak identity set.
WeakKeyIdentityDictionary
- Kind
- class
- Binding
- constant
Identity dictionary that does not keep keys alive.
Direct methods
None.
Direct class methods
:new(self)Return a new empty weak-key identity dictionary.
:newFromAList:(self alist)Return a weak-key identity dictionary initialized from an association list.
WeakReference
- Kind
- class
- Binding
- constant
Reference that does not keep its target alive.
Direct methods
:alive?(self)Return true when referenced value is still alive.
:value(self)Return referenced value or signal an error if it is no longer alive.
:value:(self value)Set referenced value.
Direct class methods
:new:(self value)Create a weak reference to value.
WeakValueIdentityDictionary
- Kind
- class
- Binding
- constant
Identity dictionary that does not keep values alive.
Direct methods
None.
Direct class methods
:new(self)Return a new empty weak-value identity dictionary.
:newFromAList:(self alist)Return a weak-value identity dictionary initialized from an association list.
abs
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return magnitude of a number.
alist->plist
- Kind
- primitive
- Binding
- constant
- Lambda list
(alist)
Return property list converted from association list.
and
- Kind
- special form
- Binding
- constant
- Lambda list
(expression (%self-slot ..))
Evaluate expressions until one is falsey, else return last value.
any
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list list (%self-slot ..))
Return true when callable returns truthy for any element tuple.
append
- Kind
- primitive
- Binding
- constant
- Lambda list
(list (%self-slot ..))
Concatenate lists, sharing the final argument tail.
apply
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable arguments)
Apply callable to argument list.
assoc
- Kind
- primitive
- Binding
- constant
- Lambda list
(key alist)
Return matching pair in alist by structural equality, else false.
assq
- Kind
- primitive
- Binding
- constant
- Lambda list
(key alist)
Return matching pair in alist by identity equality, else false.
assv
- Kind
- primitive
- Binding
- constant
- Lambda list
(key alist)
Return matching pair in alist by eqv? semantics, else false.
begin
- Kind
- special form
- Binding
- constant
- Lambda list
(body (%self-slot ..))
Evaluate body forms in order in the current environment.
boolean?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a boolean.
bytevector
- Kind
- primitive
- Binding
- constant
- Lambda list
(byte (%self-slot ..))
Create bytevector from unsigned byte fixnums.
bytevector->string
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector)
Return a string decoded from bytevector bytes.
bytevector-append
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector (%self-slot ..))
Concatenate all bytevector arguments.
bytevector-copy
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector [from [to]])
Return a bytevector slice using half-open byte indexes.
bytevector-length
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector)
Return bytevector length in bytes as fixnum.
bytevector-u8-ref
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector index)
Return byte at index as an unsigned fixnum.
bytevector-u8-set!
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector index byte)
Set byte at index and return byte as an unsigned fixnum.
bytevector?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a bytevector.
caaaar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caaadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caaar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caadar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caaddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cadaar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cadadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cadar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caddar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cadddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
caddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
car
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return the car of pair.
catch
- Kind
- special form
- Binding
- constant
- Lambda list
(tag-expression body (%self-slot ..))
Evaluate body and intercept throws matching tag.
cdaaar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdaadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdaar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdadar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdaddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cddaar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cddadr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cddar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdddar
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cddddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cddr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return pair navigation primitive result.
cdr
- Kind
- primitive
- Binding
- constant
- Lambda list
(pair)
Return the cdr of pair.
ceiling
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return least integer not less than a real number.
character?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a character.
class-slots
- Kind
- primitive
- Binding
- constant
- Lambda list
(class)
Return list of slot names for class.
class?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a class object.
closure?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a closure.
complex?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a complex number.
cond
- Kind
- special form
- Binding
- constant
- Lambda list
((test body (%self-slot ..)) (%self-slot ..))
Evaluate the body of the first clause with a truthy test.
cons
- Kind
- primitive
- Binding
- constant
- Lambda list
(car cdr)
Construct a pair from car and cdr.
cos
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return cosine of a real number.
define
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:target . body)
define-class
- Kind
- macro
- Binding
- constant
- Lambda list
(name ListTalk-implementation:superclasses ListTalk-implementation:slot-names)
define-constructor
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:signature . body)
define-macro
- Kind
- macro
- Binding
- mutable
- Lambda list
(ListTalk-implementation:target . body)
define-method
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:signature . body)
define-package
- Kind
- primitive
- Binding
- constant
- Lambda list
(package-designator [used-package-or-(used-package nickname)] ...)
Define package and optionally add used packages.
display
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Print value and newline to standard output, then return it.
dynamic-let
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:bindings . body)
environment?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is an environment.
eq?
- Kind
- primitive
- Binding
- constant
- Lambda list
(left right (%self-slot ..))
Return true when all arguments are the same value identity.
equal?
- Kind
- primitive
- Binding
- constant
- Lambda list
(left right (%self-slot ..))
Return true when all arguments are structurally equal.
eqv?
- Kind
- primitive
- Binding
- constant
- Lambda list
(left right (%self-slot ..))
Return true when all arguments are numerically equivalent or identical.
error
- Kind
- primitive
- Binding
- constant
- Lambda list
(message)
Signal error condition and abort unless intercepted.
eval
- Kind
- primitive
- Binding
- constant
- Lambda list
(form environment)
Evaluate form using environment object.
every
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list list (%self-slot ..))
Return true when callable returns truthy for every element tuple.
expt
- Kind
- primitive
- Binding
- constant
- Lambda list
([base [exponent]])
Raise base to exponent, treat one argument as e^x, and return e with no arguments.
floor
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return greatest integer not greater than a real number.
fold-expression
- Kind
- primitive
- Binding
- constant
- Lambda list
(form environment)
Fold form with lexical constants from environment object.
fold-left
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable initial list list (%self-slot ..))
Fold callable from the left across element tuples, stopping at shortest list.
fold-right
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable initial list list (%self-slot ..))
Fold callable from the right across element tuples, stopping at shortest list.
for-each
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list list (%self-slot ..))
Apply callable for each element tuple, stopping at shortest list.
format
- Kind
- primitive
- Binding
- constant
- Lambda list
(format-string argument (%self-slot ..))
Return a formatted string using SRFI-28-style directives.
function?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a function.
gensym
- Kind
- primitive
- Binding
- constant
- Lambda list
([name])
Return a fresh gensym or named uninterned symbol.
get-current-environment
- Kind
- special form
- Binding
- constant
Return current lexical environment.
handler-bind
- Kind
- special form
- Binding
- constant
- Lambda list
(handler-expression body (%self-slot ..))
Bind condition handler during dynamic extent of body.
if
- Kind
- special form
- Binding
- constant
- Lambda list
(condition then [else])
Evaluate then or else based on condition.
in-package
- Kind
- primitive
- Binding
- constant
- Lambda list
(package-designator)
Set current package for symbol interning.
integer?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is an integer.
keyword?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a symbol in the keyword package.
lambda
- Kind
- macro
- Binding
- constant
- Lambda list
(parameters . body)
length
- Kind
- primitive
- Binding
- constant
- Lambda list
(list)
Return the length of a proper list.
let
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:bindings-or-name . body)
let*
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:bindings . body)
letrec
- Kind
- special form
- Binding
- constant
- Lambda list
(((symbol value-expression) (%self-slot ..)) body (%self-slot ..))
Evaluate body in lexical scope with mutually recursive bindings.
list
- Kind
- primitive
- Binding
- constant
- Lambda list
(value (%self-slot ..))
Return a list containing all arguments.
list->string
- Kind
- primitive
- Binding
- constant
- Lambda list
(characters)
Construct a string from a proper list of characters.
list->vector
- Kind
- primitive
- Binding
- constant
- Lambda list
(list)
Return a vector containing the elements of a proper list.
list-ref
- Kind
- primitive
- Binding
- constant
- Lambda list
(list index)
Return list item at index.
list?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a proper list.
load!
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:module . ListTalk-implementation:resolvers)
log
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return natural logarithm of a real number.
macro
- Kind
- special form
- Binding
- constant
- Lambda list
(callable-expression)
Wrap primitive or closure as macro.
macro?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a macro.
macroexpand
- Kind
- primitive
- Binding
- constant
- Lambda list
(form environment)
Expand macros in form using environment object.
make-bytevector
- Kind
- primitive
- Binding
- constant
- Lambda list
(length [fill])
Create a bytevector with optional byte fill.
make-class
- Kind
- primitive
- Binding
- constant
- Lambda list
(name superclasses slot-names)
Create class with name, superclasses list, and slot-name list.
make-instance
- Kind
- primitive
- Binding
- constant
- Lambda list
(class)
Allocate empty instance for allocatable class.
make-vector
- Kind
- primitive
- Binding
- constant
- Lambda list
(length [fill])
Create vector with optional fill value.
map
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list list (%self-slot ..))
Return list of callable results for each element tuple, stopping at shortest list.
max
- Kind
- primitive
- Binding
- constant
- Lambda list
(n (send n :...))
Return largest real numeric argument.
memq
- Kind
- primitive
- Binding
- constant
- Lambda list
(value list)
Return list tail whose car is value by identity, else false.
min
- Kind
- primitive
- Binding
- constant
- Lambda list
(n (send n :...))
Return smallest real numeric argument.
negative?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is less than zero.
not
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is falsey (nil or #false).
null?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is nil.
number->string
- Kind
- primitive
- Binding
- constant
- Lambda list
(number)
Return the string representation of a number.
number?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a number.
or
- Kind
- special form
- Binding
- constant
- Lambda list
(expression (%self-slot ..))
Evaluate expressions until one is truthy, else return last value.
pair?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a pair.
phase
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return principal phase angle of a number.
plist->alist
- Kind
- primitive
- Binding
- constant
- Lambda list
(plist)
Return association list converted from property list.
positive?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is greater than zero.
primitive?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a primitive function.
provide
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:module)
quasiquote
- Kind
- special form
- Binding
- constant
- Lambda list
(value)
Evaluate quasiquote template.
quote
- Kind
- special form
- Binding
- constant
- Lambda list
(value)
Return value without evaluation.
rational?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a rational number.
read
- Kind
- primitive
- Binding
- constant
Read one line from standard input and return it as a string.
read-file-as-data
- Kind
- primitive
- Binding
- constant
- Lambda list
(path)
Read all s-expressions from path as data.
read-string-as-data
- Kind
- primitive
- Binding
- constant
- Lambda list
(source)
Read all s-expressions from source string as data.
real?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a real number.
reduce-left
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list list (%self-slot ..))
Reduce callable from the left across element tuples, stopping at shortest list.
reduce-right
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list list (%self-slot ..))
Reduce callable from the right across element tuples, stopping at shortest list.
require
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:module . ListTalk-implementation:resolvers)
reverse
- Kind
- primitive
- Binding
- constant
- Lambda list
(list)
Return a fresh list containing list items in reverse order.
round
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return nearest integer to a real number, rounding halfway values away from zero.
send
- Kind
- macro
- Binding
- constant
- Lambda list
(receiver selector . arguments)
set!
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:target value)
sin
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return sine of a real number.
slot-ref
- Kind
- primitive
- Binding
- constant
- Lambda list
(object slot)
Read object slot value by symbol name.
slot-set!
- Kind
- primitive
- Binding
- constant
- Lambda list
(object slot value)
Set object slot value by symbol name.
special-form?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a special form.
sqrt
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return principal square root of a number.
string->bytevector
- Kind
- primitive
- Binding
- constant
- Lambda list
(string)
Return a bytevector containing string UTF-8 bytes.
string->list
- Kind
- primitive
- Binding
- constant
- Lambda list
(string)
Return a list of characters in string order.
string-append
- Kind
- primitive
- Binding
- constant
- Lambda list
(string (%self-slot ..))
Concatenate all string arguments.
string-join
- Kind
- primitive
- Binding
- constant
- Lambda list
(delimiter strings)
Join a list of strings with delimiter.
string-length
- Kind
- primitive
- Binding
- constant
- Lambda list
(string)
Return string length in Unicode code points as fixnum.
string-ref
- Kind
- primitive
- Binding
- constant
- Lambda list
(string index)
Return Unicode character at index.
string?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a string.
substring
- Kind
- primitive
- Binding
- constant
- Lambda list
(string from to)
Return a substring using half-open Unicode code point indexes.
symbol-name
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return symbol name as string.
symbol?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a symbol.
tan
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return tangent of a real number.
throw
- Kind
- special form
- Binding
- constant
- Lambda list
(tag-expression value-expression)
Throw value to nearest enclosing catch with matching tag.
truncate
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return a real number truncated toward zero as an integer.
type-of
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return class descriptor of value.
unless
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:condition . body)
unwind-protect
- Kind
- special form
- Binding
- constant
- Lambda list
(protected-expression cleanup (%self-slot ..))
Always run cleanup forms; rethrow non-local exits.
use-package
- Kind
- primitive
- Binding
- constant
- Lambda list
(used-package-designator [nickname-designator])
Use package in current package, optionally by nickname only.
vector
- Kind
- primitive
- Binding
- constant
- Lambda list
(value (%self-slot ..))
Create vector from argument values.
vector->list
- Kind
- primitive
- Binding
- constant
- Lambda list
(vector)
Return a list containing the elements of vector.
vector-length
- Kind
- primitive
- Binding
- constant
- Lambda list
(vector)
Return vector length as fixnum.
vector-ref
- Kind
- primitive
- Binding
- constant
- Lambda list
(vector index)
Return value at index.
vector-set!
- Kind
- primitive
- Binding
- constant
- Lambda list
(vector index value)
Set vector element and return value.
vector?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is a vector.
when
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:condition . body)
while
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:condition . body)
with-gensyms
- Kind
- macro
- Binding
- constant
- Lambda list
(ListTalk-implementation:symbols . body)
zero?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is numerically zero.
ListTalk-implementation:%define
- Kind
- special form
- Binding
- constant
- Lambda list
(symbol value-expression)
Create mutable binding in current environment.
ListTalk-implementation:%define-constant
- Kind
- special form
- Binding
- constant
- Lambda list
(symbol value-expression)
Create constant binding in current environment.
ListTalk-implementation:%dynamic-ref
- Kind
- primitive
- Binding
- constant
- Lambda list
(dynamic-variable)
Return the current value of a dynamic variable.
ListTalk-implementation:%lambda
- Kind
- special form
- Binding
- constant
- Lambda list
(name (arg (%self-slot ..)) body (%self-slot ..))
Create closure with lexical scope.
ListTalk-implementation:%let
- Kind
- special form
- Binding
- constant
- Lambda list
(((symbol value-expression) (%self-slot ..)) body (%self-slot ..))
Evaluate body in lexical scope with local bindings.
ListTalk-implementation:%load!
- Kind
- primitive
- Binding
- constant
- Lambda list
(environment module-designator resolvers)
Load module source from resolver list into environment.
ListTalk-implementation:%require
- Kind
- primitive
- Binding
- constant
- Lambda list
(environment module-designator resolvers)
Load module source from resolver list into environment unless already provided.
ListTalk-implementation:%send
- Kind
- special form
- Binding
- constant
- Lambda list
(receiver selector argument (%self-slot ..))
Evaluate and send selector to receiver.
ListTalk-implementation:%set!
- Kind
- special form
- Binding
- constant
- Lambda list
(symbol value-expression)
Update existing mutable binding.
ListTalk-implementation:%super-send
- Kind
- special form
- Binding
- constant
- Lambda list
(receiver selector argument (%self-slot ..))
Evaluate and send selector using send invocation context.
ListTalk-implementation:%while
- Kind
- special form
- Binding
- constant
- Lambda list
(condition body (%self-slot ..))
Evaluate body while condition is truthy.