ListTalk Base Environment
316 direct bindings from a fresh base environment.
| Name | Kind | Binding |
|---|---|---|
%modules | Nil | mutable |
* | primitive | constant |
+ | primitive | constant |
- | primitive | constant |
/ | primitive | constant |
1+ | primitive | constant |
1- | primitive | constant |
< | primitive | constant |
<= | primitive | constant |
= | primitive | constant |
> | primitive | constant |
>= | primitive | constant |
AbsolutePathname | class | constant |
AsconRNG | class | constant |
BigInteger | class | constant |
BindingDescriptor | class | constant |
BitVector | class | constant |
BitVectorIterator | class | constant |
Boolean | class | constant |
ByteVector | class | constant |
ByteVectorBuilder | class | constant |
ByteVectorIterator | class | constant |
Character | class | constant |
Class | class | constant |
Closure | class | constant |
ComplexNumber | class | constant |
CompoundForm | class | constant |
Condition | class | constant |
ConditionVariable | class | constant |
DateTime | class | constant |
Dictionary | class | constant |
DictionaryIterator | class | constant |
DigestSHA256 | class | constant |
Duration | class | constant |
DynamicVariable | class | constant |
EmptyIterator | class | constant |
Environment | class | constant |
Error | class | constant |
ExactComplexNumber | class | constant |
FileStream | class | constant |
FilterIterator | class | constant |
Float | class | constant |
Fraction | class | constant |
Function | class | constant |
Future | class | constant |
IdentityDictionary | class | constant |
IdentityDictionaryIterator | 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 |
Iterator | class | constant |
KeyboardInterrupt | class | constant |
List | class | constant |
ListIterator | class | constant |
Macro | class | constant |
MapIterator | class | constant |
Message | class | constant |
MessageDigest | class | constant |
MessageQueue | class | constant |
MethodDescriptor | class | constant |
MutablePair | class | constant |
Mutex | class | constant |
Nil | class | constant |
Number | class | constant |
Object | class | constant |
Package | class | constant |
Pair | class | constant |
Pathname | class | constant |
PathnameStat | class | constant |
Primitive | class | constant |
Printer | class | constant |
Promise | class | constant |
RandomAccessFile | class | constant |
RandomNumberGenerator | class | constant |
RationalNumber | class | constant |
ReadWriteLock | class | constant |
Reader | class | constant |
ReaderError | class | constant |
RealNumber | class | constant |
RegularExpression | class | constant |
RegularExpressionMatch | class | constant |
RelativePathname | class | constant |
Restart | class | constant |
Set | class | constant |
SetIterator | class | constant |
SmallFraction | class | constant |
SmallInteger | class | constant |
SpecialForm | class | constant |
Stream | class | constant |
String | class | constant |
StringBuilder | class | constant |
StringIterator | class | constant |
SubclassResponsibilityError | class | constant |
Symbol | class | constant |
SystemError | class | constant |
Thread | class | constant |
UTCDateTime | class | constant |
UUID | class | constant |
Vector | class | constant |
VectorIterator | class | constant |
Warning | class | constant |
WeakIdentitySet | class | constant |
WeakKeyIdentityDictionary | class | constant |
WeakReference | class | constant |
WeakValueIdentityDictionary | class | constant |
XoshiroRNG | 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 |
current-restarts | primitive | constant |
define | macro | constant |
define-class | macro | constant |
define-condition-variable | macro | constant |
define-constant | macro | mutable |
define-constructor | macro | constant |
define-macro | macro | mutable |
define-message-queue | macro | constant |
define-method | macro | constant |
define-mutex | macro | constant |
define-package | primitive | constant |
define-rwlock | macro | constant |
delay | macro | 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 |
export | primitive | constant |
expt | primitive | constant |
find-restart | primitive | constant |
floor | primitive | constant |
fold-expression | primitive | constant |
fold-left | primitive | constant |
fold-right | primitive | constant |
for-each | primitive | constant |
force | closure | 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 |
invoke-restart | 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 |
package | primitive | 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 |
restart-bind | macro | constant |
reverse | primitive | constant |
round | primitive | constant |
send | macro | constant |
set! | macro | constant |
sin | primitive | constant |
sleep | 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 |
unexport | 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 |
with-mutex | macro | constant |
with-read-lock | macro | constant |
with-write-lock | macro | constant |
zero? | primitive | constant |
λ | macro | constant |
ListTalk-implementation:%closure | macro | 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:%restart-bind | special form | constant |
ListTalk-implementation:%self-slot | macro | 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
*
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest n)
Return product of numeric arguments.
+
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest n)
Return sum of numeric arguments.
-
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Negate one value or subtract remaining values from first.
/
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Divide first value by remaining values.
1+
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return argument increased by one
1-
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return argument decreased by one
<
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Return true when numeric arguments are in strictly ascending order.
<=
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Return true when numeric arguments are in non-descending order.
=
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Return true when all numeric arguments are equal.
>
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Return true when numeric arguments are in strictly descending order.
>=
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest n)
Return true when numeric arguments are in non-ascending order.
AbsolutePathname
- Kind
- class
- Binding
- constant
Normalized absolute filesystem pathname.
Direct methods
rootedAt: rootInterpret the absolute pathname relative to root.
Direct class methods
fromString: stringCreate an absolute pathname, adding a leading slash when absent.
AsconRNG
- Kind
- class
- Binding
- constant
Cryptographically secure Ascon-XOF128 random number generator.
Direct methods
bytes: lengthReturn a bytevector with length cryptographically strong random bytes.
Direct class methods
fromByteVector: seedReturn an Ascon-XOF128 random number generator initialized from 32 seed bytes.
randomReturn an Ascon-XOF128 random number generator initialized from system entropy.
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
< otherReturn true when receiver sorts before other by symbol.
<= otherReturn true when receiver sorts before or equal to other by symbol.
> otherReturn true when receiver sorts after other by symbol.
>= otherReturn true when receiver sorts after or equal to other by symbol.
compareWith: otherCompare binding descriptors by symbol.
constant?Return true when binding is constant.
flagsReturn binding flags.
symbolReturn binding symbol.
valueReturn binding value.
Direct class methods
None.
BitVector
- Kind
- class
- Binding
- constant
Mutable indexed sequence of bits.
Direct methods
all?Query the receiver bits.
and: otherReturn the bitwise conjunction with another BitVector.
any?Query the receiver bits.
append: otherReturn the concatenation of receiver and another BitVector.
asBEByteVectorReturn the bits packed into big-endian bytes.
asIteratorReturn an iterator over the bits as Booleans.
asLEByteVectorReturn the bits packed into little-endian bytes.
asListReturn the bits as a list of Booleans in index order.
asSignedIntegerReturn the bits interpreted as a two's-complement integer.
asUnsignedIntegerReturn the bits interpreted as an unsigned integer.
at: indexReturn the bit at index as a Boolean.
at: index length: lengthReturn a copy of a range of bits.
at: index put: valuePut a bit or all bits of a BitVector starting at index and return value.
choose: whenTrue or: whenFalseSelect bits from the first or second BitVector according to receiver.
combineWith: other using: combinationCombine BitVectors using a four-entry table, 4-bit integer, or function.
firstSetBitReturn the first set-bit index, or nil.
lengthReturn the number of bits.
nextSetBitAfter: indexReturn the next set-bit index strictly after index, or nil.
none?Query the receiver bits.
notReturn a BitVector with every bit inverted.
or: otherReturn the bitwise disjunction with another BitVector.
popCountReturn the number of set bits.
rank: indexReturn the number of set bits before index.
resize: length filled: fillReturn a resized copy, filling newly added bits with fill.
reverseReturn a BitVector with reversed index order.
rotateLeft: amountReturn a left-rotated BitVector.
rotateRight: amountReturn a right-rotated BitVector.
select: ordinalReturn the index of the zero-based ordinal set bit, or nil.
shiftLeft: amountReturn a logically shifted BitVector.
shiftRight: amountReturn a logically shifted BitVector.
xor: otherReturn the bitwise exclusive disjunction with another BitVector.
Direct class methods
fromBEByteVector: bytevectorReturn a bit vector decoded from big-endian bytes.
fromInteger: integer size: sizeReturn an exact-size two's-complement bit vector.
fromLEByteVector: bytevectorReturn a bit vector decoded from little-endian bytes.
fromList: listReturn a bit vector whose index order matches the list.
fromUnsignedInteger: integerReturn the shortest bit vector representing a non-negative integer.
fromUnsignedInteger: integer size: sizeReturn an exact-size bit vector representing a non-negative integer.
new: sizeReturn a new false-filled bit vector of the requested size.
new: size filled: fillReturn a new bit vector of the requested size and fill value.
BitVectorIterator
- Kind
- class
- Binding
- constant
Iterator over bit vector elements.
Direct methods
hasThis?Return true when the iterator has a current bit.
next!Advance the iterator and return receiver.
thisReturn the current bit as a Boolean.
Direct class methods
None.
Boolean
- Kind
- class
- Binding
- constant
Truth values #true and #false.
Direct methods
and: blockReturn the receiver, or call block when the receiver is truthy.
ifFalse: falseBlockCall falseBlock when the receiver is falsey.
ifFalse: falseBlock ifTrue: trueBlockCall falseBlock when falsey, otherwise call trueBlock.
ifTrue: trueBlockCall trueBlock when the receiver is truthy.
ifTrue: trueBlock ifFalse: falseBlockCall trueBlock when truthy, otherwise call falseBlock.
or: blockReturn the receiver, or call block when the receiver is falsey.
Direct class methods
None.
ByteVector
- Kind
- class
- Binding
- constant
Mutable indexed sequence of bytes.
Direct methods
< otherReturn true when receiver is lexicographically less than argument.
<= otherReturn true when receiver is lexicographically less than or equal to argument.
> otherReturn true when receiver is lexicographically greater than argument.
>= otherReturn true when receiver is lexicographically greater than or equal to argument.
BES16at: indexRead a fixed-width integer at index.
BES16at: index put: valueWrite a fixed-width integer at index and return it.
BES32at: indexRead a fixed-width integer at index.
BES32at: index put: valueWrite a fixed-width integer at index and return it.
BES64at: indexRead a fixed-width integer at index.
BES64at: index put: valueWrite a fixed-width integer at index and return it.
BEU16at: indexRead a fixed-width integer at index.
BEU16at: index put: valueWrite a fixed-width integer at index and return it.
BEU32at: indexRead a fixed-width integer at index.
BEU32at: index put: valueWrite a fixed-width integer at index and return it.
BEU64at: indexRead a fixed-width integer at index.
BEU64at: index put: valueWrite a fixed-width integer at index and return it.
LES16at: indexRead a fixed-width integer at index.
LES16at: index put: valueWrite a fixed-width integer at index and return it.
LES32at: indexRead a fixed-width integer at index.
LES32at: index put: valueWrite a fixed-width integer at index and return it.
LES64at: indexRead a fixed-width integer at index.
LES64at: index put: valueWrite a fixed-width integer at index and return it.
LEU16at: indexRead a fixed-width integer at index.
LEU16at: index put: valueWrite a fixed-width integer at index and return it.
LEU32at: indexRead a fixed-width integer at index.
LEU32at: index put: valueWrite a fixed-width integer at index and return it.
LEU64at: indexRead a fixed-width integer at index.
LEU64at: index put: valueWrite a fixed-width integer at index and return it.
append: otherReturn a new bytevector with other appended.
asBase16Return an uppercase hexadecimal string encoding the receiver bytes.
asBase64Return a base64 string encoding the receiver bytes.
asBase64URIReturn a URI-safe base64 string encoding the receiver bytes.
asBase64URIWithPadding: include_paddingReturn a URI-safe base64 string, optionally omitting padding.
asBase64WithPadding: include_paddingReturn a base64 string, optionally omitting padding.
asIteratorReturn an iterator over bytevector bytes.
asListReturn bytevector bytes as a list of unsigned fixnums.
asPortableFilenameEncode the receiver bytes into a POSIX portable filename string (A–Z, a–z, 0–9, '.', '-', '_'), escaping '_' as '__' and other bytes as _HH.
asStringReturn a string decoded from this bytevector.
at: indexReturn byte at index as an unsigned fixnum.
at: index put: valueSet byte at index, or copy a bytevector there, and return value.
compareWith: otherReturn -1, 0, or 1 when receiver is lexicographically less than, equal to, or greater than argument.
copyFrom: from length: length to: toCopy bytes within the receiver and return the receiver.
from: from to: toReturn a bytevector slice using half-open byte indexes.
hexReturn a lowercase hexadecimal string encoding the receiver bytes.
lengthReturn bytevector length in bytes.
splitLinesReturn bytevector lines without line terminators.
writeToFile: filenameWrite bytevector to a file atomically and return filename.
Direct class methods
fromFile: filenameReturn file contents as a bytevector.
fromPortableFilename: filenameDecode a portable filename string into its original bytes.
random: lengthReturn a bytevector with cryptographically strong random bytes.
ByteVectorBuilder
- Kind
- class
- Binding
- constant
Builder backed by a growable byte buffer.
Direct methods
append: valueAppend a bytevector, character, or byte and return the receiver.
valueReturn a fresh bytevector containing the accumulated bytes.
Direct class methods
newReturn a new empty bytevector builder.
ByteVectorIterator
- Kind
- class
- Binding
- constant
Iterator over bytevector bytes.
Direct methods
hasThis?Return true when the iterator has a current byte.
next!Advance the iterator and return receiver.
thisReturn the current byte as an unsigned fixnum.
Direct class methods
None.
Character
- Kind
- class
- Binding
- constant
Unicode scalar character value.
Direct methods
< otherReturn true when receiver's code point is less than the argument's.
<= otherReturn true when receiver's code point is less than or equal to the argument's.
> otherReturn true when receiver's code point is greater than the argument's.
>= otherReturn true when receiver's code point is greater than or equal to the argument's.
alphabetic?Return true for a Unicode letter.
asCodepointReturn the Unicode code point of receiver.
asStringReturn receiver encoded as a one-character UTF-8 string.
categoryReturn the two-letter Unicode general category.
compareWith: otherReturn -1, 0, or 1 when receiver's code point is less than, equal to, or greater than the argument's.
decimal?Return true for a Unicode decimal digit.
lowerReturn the Unicode simple lowercase mapping.
lowerCaseReturn the Unicode simple lowercase mapping.
lowerCase?Return true for a lowercase Unicode letter.
mark?Return true for a Unicode combining mark.
numeric?Return true for a Unicode number.
titleReturn the Unicode simple titlecase mapping.
titleCaseReturn the Unicode simple titlecase mapping.
upperReturn the Unicode simple uppercase mapping.
upperCaseReturn the Unicode simple uppercase mapping.
upperCase?Return true for an uppercase Unicode letter.
whitespace?Return true for Unicode whitespace.
widthReturn display width measured with wcwidth.
Direct class methods
fromCodepoint: codepointReturn the Character for a Unicode scalar value.
Class
- Kind
- class
- Binding
- constant
Runtime representation of classes and metaclasses.
Direct methods
>> selectorReturn direct method for selector or nil.
addMethod: method withSelector: selectorAdd direct method for selector.
allMethodsAsListReturn most-specific direct and inherited method descriptors as a list.
allMethodsDo: callableCall callable for each most-specific method descriptor.
allSelectorsReturn direct and inherited method selectors.
allSelectorsAsListReturn direct and inherited method selectors as a list.
allocAllocate empty instance for allocatable class.
documentationReturn class documentation.
inspectionReturn an inspection whose contents are direct methods.
lookupSelector: selectorReturn resolved method for selector or nil.
methodsAsListReturn direct method descriptors as a list.
methodsDo: callableCall callable for each direct method descriptor.
precedenceListReturn class precedence list.
selectorsReturn direct method selectors.
selectorsAsListReturn direct method selectors as a list.
slotsReturn class slot names.
Direct class methods
None.
Closure
- Kind
- class
- Binding
- constant
Callable function object with captured environment.
Direct methods
argumentsReturn closure parameter list.
documentationReturn closure documentation.
nameReturn the closure name.
Direct class methods
None.
ComplexNumber
- Kind
- class
- Binding
- constant
Abstract root for complex numeric values.
Direct methods
imaginaryReturn receiver's imaginary component. Subclasses must implement this method.
realReturn 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
argumentsReturn compound form argument documentation. Subclasses must implement this method.
documentationReturn compound form documentation. Subclasses must implement this method.
nameReturn the compound form name. 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.
ConditionVariable
- Kind
- class
- Binding
- constant
Condition variable associated with a mutex while waiting.
Direct methods
broadcastWake all threads waiting on condition variable and return receiver.
nameReturn condition variable name, or nil when it has none.
signalWake one thread waiting on condition variable and return receiver.
wait: mutexRelease mutex, wait for notification, reacquire mutex, and return receiver.
Direct class methods
newReturn a new condition variable.
new: nameReturn a new named condition variable.
DateTime
- Kind
- class
- Binding
- constant
Calendar date and wall-clock time.
Direct methods
asISO8601Return receiver formatted as ISO8601 text. Subclasses must implement this method.
asISO8601WithSeparator: separatorReturn receiver formatted as ISO8601 text with separator. Subclasses must implement this method.
asInstantReturn receiver converted to an Instant. Subclasses must implement this method.
dayReturn date-time day. Subclasses must implement this method.
hourReturn date-time hour. Subclasses must implement this method.
microsecondReturn date-time microsecond. Subclasses must implement this method.
minuteReturn date-time minute. Subclasses must implement this method.
monthReturn date-time month. Subclasses must implement this method.
secondReturn date-time second. Subclasses must implement this method.
yearReturn 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: key put: valueSet value for key and return value.
remove: keyRemove key and return its value, or nil when key is absent.
Direct class methods
newReturn a new empty dictionary.
newFromAList: alistReturn a dictionary initialized from an association list.
DictionaryIterator
- Kind
- class
- Binding
- constant
Iterator over dictionary associations.
Direct methods
hasThis?Return true when the iterator has a current association.
next!Advance the iterator and return receiver.
thisReturn the current association.
Direct class methods
None.
DigestSHA256
- Kind
- class
- Binding
- constant
SHA-256 message digest.
Direct methods
finishFinish SHA-256 digest computation and return digest bytes.
update: bytesUpdate SHA-256 digest state with bytes and return receiver.
Direct class methods
digest: bytesReturn SHA-256 digest of bytes as a bytevector.
newReturn a new incremental SHA-256 message digest.
Duration
- Kind
- class
- Binding
- constant
Signed span of time.
Direct methods
+ duration-or-instantAdd a duration or advance an instant by receiver.
- otherReturn difference of receiver and another duration.
addDuration: otherReturn sum of receiver and another duration.
asMicrosecondsReturn receiver as microseconds.
asSecondsReturn receiver as seconds.
sleepSleep for receiver.
substractDuration: otherReturn difference of receiver and another duration.
Direct class methods
fromMicroseconds: microsecondsReturn a duration from microseconds.
fromSeconds: secondsReturn a duration from seconds.
DynamicVariable
- Kind
- class
- Binding
- constant
Dynamically scoped variable binding.
Direct methods
valueReturn the current dynamic value or the default value.
value: valueSet the current thread dynamic value.
Direct class methods
new: defaultValueCreate a dynamic variable with default value.
EmptyIterator
- Kind
- class
- Binding
- constant
Singleton iterator with no current value.
Direct methods
hasThis?Return false.
next!Return receiver.
thisSignal that an empty iterator has no current value.
Direct class methods
None.
Environment
- Kind
- class
- Binding
- constant
Mapping from names to values during evaluation.
Direct methods
at: symbolReturn symbol value, or nil when symbol is unbound.
at: symbol put: valueBind symbol to value in this environment and return value.
at: symbol putConstant: valueBind symbol to a constant value in this environment and return value.
bindingsAsListReturn direct binding reflections as a list.
bindingsDo: callableCall callable for each direct binding reflection.
constant?: symbolReturn true when symbol resolves to a constant binding.
contains?: symbolReturn true when symbol is bound in this environment or its parents.
inspectionReturn an inspection whose contents are direct bindings.
Direct class methods
newReturn a new empty environment.
newBaseReturn a new base environment.
newWithParent: parentReturn a new environment with parent.
sharedBaseReturn 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
imaginaryReturn receiver's imaginary component.
realReturn receiver's real component.
Direct class methods
None.
FileStream
- Kind
- class
- Binding
- constant
Stream backed by a file descriptor.
Direct methods
closeClose stream.
flushFlush buffered stream data.
isClosedReturn true when file stream is closed.
isReadableReturn true when file stream supports reading.
isWritableReturn true when file stream supports writing.
readByteRead one byte as an unsigned fixnum, or nil at EOF.
readByteVectorRead remaining stream bytes into a bytevector.
readBytes: lengthRead up to length bytes.
readLineRead a line without its line terminator.
readStringRead remaining stream bytes as UTF-8 text with normalized line endings.
seek: offsetSeek from current stream position.
seekFromEnd: offsetSeek from end of stream.
seekFromStart: offsetSeek from start of stream.
writeByte: byteWrite one byte.
writeByteVector: bytevectorWrite bytevector bytes.
writeCharacter: characterWrite one character as UTF-8.
writeLnWrite a line feed byte.
writeString: stringWrite string UTF-8 bytes.
Direct class methods
new: filenameOpen a file stream.
newForAppending: filenameOpen a file stream.
newForInput: filenameOpen a file stream.
newForOutput: filenameOpen a file stream.
FilterIterator
- Kind
- class
- Binding
- constant
Lazy iterator selecting values accepted by a callable.
Direct methods
hasThis?Return true when a matching value remains.
next!Advance to the next matching value and return receiver.
thisReturn the current matching value.
Direct class methods
filter: iterator with: callableReturn a lazy iterator filtering iterator with callable.
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
valueCall the function with no arguments.
value: firstCall the function with one argument.
value: first value: secondCall the function with two arguments.
value: first value: second value: thirdCall the function with three arguments.
valueWithArguments: argumentsCall the function with an argument list.
whileFalseCall the receiver while it returns a falsey value.
whileFalse: bodyCall body while the receiver returns a falsey value.
whileTrueCall the receiver while it returns a truthy value.
whileTrue: bodyCall body while the receiver returns a truthy value.
Direct class methods
None.
Future
- Kind
- class
- Binding
- constant
Abstract root for values that may be resolved later.
Direct methods
force!Resolve the future if needed and return its value. Subclasses must implement this method.
hasValue?Return true when the future has a value. Subclasses must implement this method.
resolved?Return true when the future is resolved. Subclasses must implement this method.
valueReturn the future's value. Subclasses must implement this method.
Direct class methods
None.
IdentityDictionary
- Kind
- class
- Binding
- constant
Dictionary whose keys are compared by identity.
Direct methods
asAListReturn dictionary entries as an association list.
asIteratorReturn an iterator over dictionary associations.
at: keyReturn value for key, or nil when key is absent.
at: key put: valueSet value for key and return value.
contains?: keyReturn true when dictionary contains key.
forEach: callableApply callable to each key and value, and return nil.
map: callableReturn list of callable results for each key and value.
remove: keyRemove key and return its value, or nil when key is absent.
sizeReturn dictionary size.
Direct class methods
newReturn a new empty identity dictionary.
newFromAList: alistReturn an identity dictionary initialized from an association list.
IdentityDictionaryIterator
- Kind
- class
- Binding
- constant
Iterator over identity dictionary associations.
Direct methods
hasThis?Return true when the iterator has a current association.
next!Advance the iterator and return receiver.
thisReturn the current association.
Direct class methods
None.
IdentitySet
- Kind
- class
- Binding
- constant
Set of unique values compared by identity.
Direct methods
None.
Direct class methods
fromList: listReturn an identity set containing the unique identities of list.
newReturn a new empty identity set.
ImmutableDictionary
- Kind
- class
- Binding
- constant
Immutable mapping from keys to values.
Direct methods
asAListReturn dictionary entries as an association list.
asIteratorReturn an iterator over dictionary associations.
at: keyReturn value for key, or nil when key is absent.
contains?: keyReturn true when dictionary contains key.
forEach: callableApply callable to each key and value, and return nil.
map: callableReturn list of callable results for each key and value.
sizeReturn dictionary size.
Direct class methods
newReturn a new empty immutable dictionary.
newFromAList: alistReturn an immutable dictionary initialized from an association list.
ImmutableList
- Kind
- class
- Binding
- constant
Immutable linked list node.
Direct methods
carReturn immutable list car.
cdrReturn immutable list cdr.
Direct class methods
fromList: listReturn 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
imaginaryReturn receiver's imaginary component.
realReturn receiver's real component.
Direct class methods
None.
Instant
- Kind
- class
- Binding
- constant
Absolute point in time.
Direct methods
+ durationReturn receiver advanced by duration.
- duration-or-instantSubtract a duration or return duration since another instant.
afterDuration: durationReturn receiver advanced by duration.
asMicrosecondsReturn receiver as UTC microseconds since the Unix epoch.
asSecondsReturn receiver as UTC seconds since the Unix epoch.
beforeDuration: durationReturn receiver moved backward by duration.
durationSince: otherReturn duration from other instant to receiver.
durationUntil: otherReturn duration from receiver to other instant.
sleepUntilSleep until receiver.
Direct class methods
fromMicroseconds: microsecondsReturn an instant from UTC microseconds since the Unix epoch.
fromSeconds: secondsReturn an instant from UTC seconds since the Unix epoch.
nowReturn the current instant.
Integer
- Kind
- class
- Binding
- constant
Abstract root for exact integer values.
Direct methods
timesDo: callableCall callable with each integer index from zero up to receiver.
toBytesReturn the shortest big-endian unsigned byte representation of receiver.
toBytes: byte-countReturn a big-endian unsigned byte representation with byte-count bytes.
toTwosComplementReturn the shortest big-endian two's-complement byte representation of receiver.
toTwosComplement: byte-countReturn a big-endian two's-complement byte representation with byte-count bytes.
Direct class methods
fromBytes: bytevectorReturn an integer decoded from big-endian unsigned bytes.
fromTwosComplement: bytevectorReturn 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.
Iterator
- Kind
- class
- Binding
- constant
Abstract root for mutable iterators.
Direct methods
any: callableConsume receiver until callable returns truthy or it is exhausted.
asIteratorReturn receiver.
asListConsume iterator and return remaining values as a list.
do: callableConsume receiver, applying callable to each value, and return nil.
every: callableConsume receiver until callable returns falsey or it is exhausted.
filter: callableReturn a lazy iterator selecting values for which callable is truthy.
forEach: callableConsume receiver, applying callable to each value, and return nil.
hasThis?Return true when the iterator has a current value. Subclasses must implement this method.
inject: initial into: callableConsume receiver, folding values from the left.
map: callableReturn a lazy iterator mapping callable over receiver.
next!Advance the iterator. Subclasses must implement this method.
reduce: callableConsume receiver, reducing values from the left.
thisReturn the current value of the iterator. Subclasses must implement this method.
Direct class methods
None.
KeyboardInterrupt
- Kind
- class
- Binding
- constant
Error signaled when keyboard interrupt is requested.
Direct methods
None.
Direct class methods
None.
List
- Kind
- class
- Binding
- constant
Abstract root for linked list values.
Direct methods
any: callableReturn true when callable returns truthy for any element.
asIteratorReturn an iterator over receiver.
asListReturn receiver.
asVectorReturn list elements as a vector.
at: indexReturn list item at index.
every: callableReturn true when callable returns truthy for every element.
filter: callableReturn elements for which callable returns truthy.
forEach: callableApply callable to each element and return nil.
inject: initial into: callableFold list from the left with initial value and callable.
inspectionReturn an inspection whose contents are the list elements.
lengthReturn list length.
map: callableReturn list of callable results for each element.
reduce: callableReduce list from the left with callable.
sortReturn a fresh list sorted with element compareWith:.
sortUsing: callableReturn a fresh list sorted with a two-argument comparator.
Direct class methods
None.
ListIterator
- Kind
- class
- Binding
- constant
Iterator over proper list elements.
Direct methods
hasThis?Return true when the iterator has a current value.
next!Advance the iterator and return receiver.
thisReturn the current value of the iterator.
Direct class methods
None.
Macro
- Kind
- class
- Binding
- constant
Source transformation invoked during evaluation.
Direct methods
argumentsReturn argument list of the macro callable.
documentationReturn documentation of the macro callable.
nameReturn the wrapped callable's name.
Direct class methods
None.
MapIterator
- Kind
- class
- Binding
- constant
Lazy iterator mapping a callable over another iterator.
Direct methods
hasThis?Return true when the wrapped iterator has a current value.
next!Advance the wrapped iterator and return receiver.
thisReturn callable applied to wrapped iterator current value.
Direct class methods
map: iterator with: callableReturn a lazy iterator mapping callable over iterator.
Message
- Kind
- class
- Binding
- constant
Object message selector and arguments.
Direct methods
argumentsReturn message arguments.
receiverReturn message receiver.
selectorReturn message selector.
sendTo: receiverSend message to receiver.
Direct class methods
None.
MessageDigest
- Kind
- class
- Binding
- constant
Abstract root for incremental message digests.
Direct methods
finishFinish digest computation and return digest bytes. Subclasses must implement this method.
update: bytesUpdate digest state with bytes and return receiver. Subclasses must implement this method.
Direct class methods
None.
MessageQueue
- Kind
- class
- Binding
- constant
Fixed-size blocking queue of object values.
Direct methods
capacityReturn message queue capacity.
empty?Return true when queue contains no messages.
full?Return true when queue cannot accept another message without blocking.
getGet next value from queue, blocking while queue is empty.
nameReturn message queue name, or nil when it has none.
put: valuePut value into queue, blocking while queue is full, and return receiver.
sizeReturn number of messages currently in queue.
tryGetTry to get next value from queue, or nil when queue is empty.
tryPut: valueTry to put value into queue and return whether it was enqueued.
Direct class methods
new: capacityReturn a new message queue with fixed capacity.
new: capacity named: nameReturn a new named message queue with fixed capacity.
MethodDescriptor
- Kind
- class
- Binding
- constant
Immutable description of a class method.
Direct methods
< otherReturn true when receiver sorts before other by selector.
<= otherReturn true when receiver sorts before or equal to other by selector.
> otherReturn true when receiver sorts after other by selector.
>= otherReturn true when receiver sorts after or equal to other by selector.
callableReturn method callable.
compareWith: otherCompare method descriptors by selector.
implementing-classReturn class that directly implements the method.
selectorReturn method selector.
Direct class methods
None.
MutablePair
- Kind
- class
- Binding
- constant
Mutable cons pair containing car and cdr.
Direct methods
car: valueSet pair car.
cdr: valueSet pair cdr.
Direct class methods
None.
Mutex
- Kind
- class
- Binding
- constant
Mutual exclusion lock.
Direct methods
do: callableLock mutex, call callable, unlock mutex, and return callable result.
lockLock mutex and return receiver.
nameReturn mutex name, or nil when it has none.
tryLockTry to lock mutex and return whether it was acquired.
unlockUnlock mutex and return receiver.
Direct class methods
newReturn a new mutex.
new: nameReturn a new named mutex.
Nil
- Kind
- class
- Binding
- constant
The distinguished empty-list and falsey nil value.
Direct methods
asIteratorReturn the empty iterator singleton.
Direct class methods
None.
Number
- Kind
- class
- Binding
- constant
Abstract root for numeric values.
Direct methods
* otherReturn product of receiver and argument.
+ otherReturn sum of receiver and argument.
- otherReturn difference of receiver and argument.
/ otherReturn quotient of receiver divided by argument.
< otherReturn true when receiver is less than argument.
<= otherReturn true when receiver is less than or equal to argument.
= otherReturn true when receiver equals argument numerically.
> otherReturn true when receiver is greater than argument.
>= otherReturn true when receiver is greater than or equal to argument.
absReturn receiver's magnitude.
asStringReturn receiver formatted as a string.
ceilingReturn least integer not less than receiver.
compareWith: otherReturn -1, 0, or 1 when receiver is less than, equal to, or greater than argument.
cosReturn cosine of receiver.
exptReturn e raised to receiver.
expt: exponentReturn receiver raised to exponent.
floorReturn greatest integer not greater than receiver.
logReturn natural logarithm of receiver.
max: otherReturn larger of receiver and argument.
min: otherReturn smaller of receiver and argument.
negative?Return true when receiver is less than zero.
phaseReturn receiver's principal phase angle.
positive?Return true when receiver is greater than zero.
roundReturn nearest integer to receiver, rounding halfway values away from zero.
sinReturn sine of receiver.
sqrtReturn principal square root of receiver.
tanReturn tangent of receiver.
truncateReturn receiver truncated toward zero as an integer.
zero?Return true when receiver is numerically zero.
Direct class methods
None.
Object
- Kind
- class
- Binding
- constant
Root of the object hierarchy.
Direct methods
= otherReturn true when receiver and argument are structurally equal (equal?).
== otherReturn true when receiver and argument are identical (same object).
asStringReturn receiver debug-printed as a string.
classReturn receiver class.
doesNotUnderstand: messageSignal that the receiver does not understand message.
inspectionReturn a presentation-independent inspection of receiver.
perform: selectorSend message to receiver
slot: slotRead receiver slot.
slot: slot put: valueWrite receiver slot.
subclassResponsibilitySignal 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
< otherReturn true when receiver name is lexicographically less than argument name.
<= otherReturn true when receiver name is lexicographically less than or equal to argument name.
> otherReturn true when receiver name is lexicographically greater than argument name.
>= otherReturn true when receiver name is lexicographically greater than or equal to argument name.
compareWith: otherReturn -1, 0, or 1 when receiver name is lexicographically less than, equal to, or greater than argument name.
export: symbolMark symbol as exported from package.
exportedSymbolsAsListReturn exported symbols as a list.
nameReturn package name.
symbolsAsListReturn local interned symbols as a list.
symbolsDo: callableCall callable for each local interned symbol.
unexport: symbolMark symbol as not exported from package.
Direct class methods
find: nameReturn package with the provided name, or nil when no such package exists.
named: nameReturn package with the provided name, creating it when needed.
packagesAsListReturn packages as a list.
packagesDo: callableCall callable for each package.
Pair
- Kind
- class
- Binding
- constant
Immutable cons pair containing car and cdr.
Direct methods
carReturn pair car.
cdrReturn pair cdr.
Direct class methods
None.
Pathname
- Kind
- class
- Binding
- constant
Abstract normalized UTF-8 filesystem pathname.
Direct methods
/ pathnameAppend a relative pathname to the receiver and normalize the result.
absolute?Return true when the pathname is absolute.
asStringReturn the pathname as a string.
executable?Return true when the pathname is executable.
exists?Return true when the pathname exists.
isBlockDevice?Return true when the pathname names a block device.
isCharacterDevice?Return true when the pathname names a character device.
isDirectory?Return true when the pathname names a directory.
isFIFO?Return true when the pathname names a FIFO.
isRegularFile?Return true when the pathname names a regular file.
isSocket?Return true when the pathname names a socket.
isSymbolicLink?Return true when the pathname names a symbolic link.
lstatReturn a POSIX metadata snapshot without following the final symlink.
parentReturn the pathname with its final segment removed.
readable?Return true when the pathname is readable.
relative?Return true when the pathname is relative.
statReturn a snapshot of POSIX metadata for the pathname.
writable?Return true when the pathname is writable.
Direct class methods
fromString: stringCreate an absolute or relative pathname according to the string's shape.
PathnameStat
- Kind
- class
- Binding
- constant
Immutable snapshot of POSIX pathname metadata.
Direct methods
accessedAtReturn a snapshotted POSIX timestamp.
atimeReturn a snapshotted POSIX timestamp.
blksizeReturn a snapshotted POSIX metadata field.
blocksReturn a snapshotted POSIX metadata field.
ctimeReturn a snapshotted POSIX timestamp.
devReturn a snapshotted POSIX metadata field.
device?Return true for a character or block device.
directory?Inspect the snapshotted POSIX file kind.
gidReturn a snapshotted POSIX metadata field.
inoReturn a snapshotted POSIX metadata field.
isBlockDevice?Inspect the snapshotted POSIX file kind.
isCharacterDevice?Inspect the snapshotted POSIX file kind.
isDirectory?Inspect the snapshotted POSIX file kind.
isFIFO?Inspect the snapshotted POSIX file kind.
isRegularFile?Inspect the snapshotted POSIX file kind.
isSocket?Inspect the snapshotted POSIX file kind.
isSymbolicLink?Inspect the snapshotted POSIX file kind.
modeReturn a snapshotted POSIX metadata field.
modifiedAtReturn a snapshotted POSIX timestamp.
mtimeReturn a snapshotted POSIX timestamp.
nlinkReturn a snapshotted POSIX metadata field.
pathnameReturn the pathname used for this snapshot.
pipe?Inspect the snapshotted POSIX file kind.
rdevReturn a snapshotted POSIX metadata field.
regular-file?Inspect the snapshotted POSIX file kind.
sizeReturn a snapshotted POSIX metadata field.
socket?Inspect the snapshotted POSIX file kind.
statusChangedAtReturn a snapshotted POSIX timestamp.
uidReturn a snapshotted POSIX metadata field.
Direct class methods
file: pathReturn POSIX status for a String or Pathname.
Primitive
- Kind
- class
- Binding
- constant
Callable function implemented in native code.
Direct methods
argumentsReturn primitive argument list, or the raw argument string if it cannot be read.
documentationReturn primitive documentation.
nameReturn the primitive name.
Direct class methods
None.
Printer
- Kind
- class
- Binding
- constant
Renderer for printing ListTalk values.
Direct methods
None.
Direct class methods
None.
Promise
- Kind
- class
- Binding
- constant
Delayed computation evaluated at most once when forced.
Direct methods
force!Force promise evaluation and return its value.
hasValue?Return true when the promise has a memoized value.
resolved?Return true when the promise is resolved.
valueReturn promise value, or raise error if promise has not resolved.
Direct class methods
delay: thunkCreate a promise that will call thunk when forced.
RandomAccessFile
- Kind
- class
- Binding
- constant
File descriptor backed positional byte storage.
Direct methods
BES16at: indexRead a fixed-width integer at index.
BES16at: index put: valueWrite a fixed-width integer at index and return it.
BES32at: indexRead a fixed-width integer at index.
BES32at: index put: valueWrite a fixed-width integer at index and return it.
BES64at: indexRead a fixed-width integer at index.
BES64at: index put: valueWrite a fixed-width integer at index and return it.
BEU16at: indexRead a fixed-width integer at index.
BEU16at: index put: valueWrite a fixed-width integer at index and return it.
BEU32at: indexRead a fixed-width integer at index.
BEU32at: index put: valueWrite a fixed-width integer at index and return it.
BEU64at: indexRead a fixed-width integer at index.
BEU64at: index put: valueWrite a fixed-width integer at index and return it.
LES16at: indexRead a fixed-width integer at index.
LES16at: index put: valueWrite a fixed-width integer at index and return it.
LES32at: indexRead a fixed-width integer at index.
LES32at: index put: valueWrite a fixed-width integer at index and return it.
LES64at: indexRead a fixed-width integer at index.
LES64at: index put: valueWrite a fixed-width integer at index and return it.
LEU16at: indexRead a fixed-width integer at index.
LEU16at: index put: valueWrite a fixed-width integer at index and return it.
LEU32at: indexRead a fixed-width integer at index.
LEU32at: index put: valueWrite a fixed-width integer at index and return it.
LEU64at: indexRead a fixed-width integer at index.
LEU64at: index put: valueWrite a fixed-width integer at index and return it.
at: indexReturn the byte at index.
at: index put: valueWrite a byte or bytevector at index, extending the file if needed.
close!Close the file descriptor and return the receiver.
copyFrom: from length: length to: toCopy a file range in place, extending the file if needed.
from: from to: toReturn bytes in the half-open file range.
lengthReturn the current file length.
truncateTo: lengthSet the file length and return the receiver.
Direct class methods
forReading: filenameOpen an existing file for positional reads.
forWriting: filenameOpen or create a file for positional reads and writes.
RandomNumberGenerator
- Kind
- class
- Binding
- constant
Abstract random number generator.
Direct methods
bytes: lengthReturn a bytevector with length random bytes. Subclasses must implement this method.
floatReturn a random float greater than or equal to zero and less than one.
integerBelow: boundReturn a random integer greater than or equal to zero and less than bound.
integerFrom: from to: toReturn a random integer in the inclusive range from to to.
Direct class methods
None.
RationalNumber
- Kind
- class
- Binding
- constant
Abstract root for exact rational numbers.
Direct methods
None.
Direct class methods
None.
ReadWriteLock
- Kind
- class
- Binding
- constant
Lock permitting multiple readers or one writer.
Direct methods
nameReturn read-write lock name, or nil when it has none.
readDo: callableAcquire read access, call callable, release read access, and return callable result.
readLockAcquire read access and return receiver.
readUnlockRelease read access and return receiver.
tryReadLockTry to acquire read access and return whether it was acquired.
tryWriteLockTry to acquire write access and return whether it was acquired.
writeDo: callableAcquire write access, call callable, release write access, and return callable result.
writeLockAcquire write access and return receiver.
writeUnlockRelease write access and return receiver.
Direct class methods
newReturn a new read-write lock.
new: nameReturn a new named read-write lock.
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
asFloatReturn receiver converted to a float.
from: from to: to withStep: step do: callableCall callable with each value in the half-open range from to to stepping by step.
Direct class methods
None.
RegularExpression
- Kind
- class
- Binding
- constant
Immutable compiled UTF-8 regular expression.
Direct methods
match: subjectReturn the first match in subject, or false when there is no match.
patternReturn the source pattern.
substitute: subject with: replacementReturn subject with every match replaced, expanding capture references.
Direct class methods
fromString: patternCompile pattern as a UTF-8 regular expression.
RegularExpressionMatch
- Kind
- class
- Binding
- constant
Immutable result of matching a regular expression.
Direct methods
at: indexReturn a captured substring, or false for an unmatched optional capture.
captureCountReturn the number of captures, including the complete match.
from: indexReturn the capture start as a Unicode code-point index, or false.
regularExpressionReturn the regular expression that produced the match.
subjectReturn the matched subject string.
to: indexReturn the exclusive capture end as a Unicode code-point index, or false.
Direct class methods
None.
RelativePathname
- Kind
- class
- Binding
- constant
Normalized relative filesystem pathname.
Direct methods
None.
Direct class methods
fromString: stringCreate a relative pathname; reject a leading slash.
Restart
- Kind
- class
- Binding
- constant
Immutable description of a restart and its callable implementation.
Direct methods
argument-listReturn restart argument list.
callableReturn restart callable.
descriptionReturn restart description.
nameReturn restart name.
Direct class methods
fromClosure: closureReturn restart described by closure metadata.
named: name fromClosure: closureReturn named restart described by closure metadata.
Set
- Kind
- class
- Binding
- constant
Collection of unique values compared by equality.
Direct methods
any: callableReturn true when callable returns truthy for any element.
asIteratorReturn an iterator over set elements.
asListReturn set elements as a list.
contains?: valueReturn true when set contains value.
empty?Return true when set has no elements.
every: callableReturn true when callable returns truthy for every element.
forEach: callableApply callable to each element and return nil.
inject: initial into: callableFold set with initial value and callable.
put: valueAdd value to set and return it.
reduce: callableReduce set with callable.
remove: valueRemove value from set and return true when it was present.
sizeReturn set size.
Direct class methods
fromList: listReturn a set containing the unique elements of list.
newReturn a new empty set.
SetIterator
- Kind
- class
- Binding
- constant
Iterator over set elements.
Direct methods
hasThis?Return true when the iterator has a current set element.
next!Advance the iterator and return receiver.
thisReturn the current set element.
Direct class methods
None.
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
argumentsReturn special form argument list, or the raw argument string if it cannot be read.
documentationReturn special form documentation.
nameReturn the special form name.
Direct class methods
None.
Stream
- Kind
- class
- Binding
- constant
Abstract input and output byte stream.
Direct methods
closeClose stream. Subclasses must implement this method.
flushFlush buffered stream data. Subclasses must implement this method.
isClosedReturn true when stream is closed.
isReadableReturn true when stream supports reading.
isWritableReturn true when stream supports writing.
readByteRead one byte as an unsigned fixnum, or nil at EOF. Subclasses must implement this method.
readByteVectorRead remaining stream bytes into a bytevector. Subclasses must implement this method.
readBytes: lengthRead up to length bytes. Subclasses must implement this method.
readLineRead a line without its line terminator. Subclasses must implement this method.
readStringRead remaining stream bytes as UTF-8 text with normalized line endings. Subclasses must implement this method.
seek: offsetSeek from current stream position. Subclasses must implement this method.
seekFromEnd: offsetSeek from end of stream. Subclasses must implement this method.
seekFromStart: offsetSeek from start of stream. Subclasses must implement this method.
writeByte: byteWrite one byte. Subclasses must implement this method.
writeByteVector: bytevectorWrite bytevector bytes. Subclasses must implement this method.
writeCharacter: characterWrite one character as UTF-8. Subclasses must implement this method.
writeLnWrite a line feed byte. Subclasses must implement this method.
writeString: stringWrite 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
< otherReturn true when receiver is lexicographically less than argument.
<= otherReturn true when receiver is lexicographically less than or equal to argument.
> otherReturn true when receiver is lexicographically greater than argument.
>= otherReturn true when receiver is lexicographically greater than or equal to argument.
append: otherReturn a new string with other appended.
asByteVectorReturn a bytevector containing string UTF-8 bytes.
asHexByteVectorReturn a bytevector decoded from this hexadecimal string.
asIteratorReturn an iterator over string characters.
asListReturn string characters as a list.
asPortableFilenameEncode the receiver into a POSIX portable filename string (A–Z, a–z, 0–9, '.', '-', '_'), escaping '_' as '__' and other bytes as _HH.
asStringReturn receiver.
at: indexReturn Unicode character at index.
capitalizeTitlecase the first code point and lowercase the remainder.
caseFoldReturn the Unicode default full case folding of receiver.
compareWith: otherReturn -1, 0, or 1 when receiver is lexicographically less than, equal to, or greater than argument.
contains?: needleReturn true when string contains needle.
decodeBase64Return a bytevector decoded from this base64 string.
decodeBase64IgnoringPadding: ignore_paddingReturn a bytevector decoded from this base64 string, optionally accepting omitted padding.
decodeBase64URIReturn a bytevector decoded from this URI-safe base64 string.
decodeBase64URIIgnoringPadding: ignore_paddingReturn a bytevector decoded from this URI-safe base64 string, optionally accepting omitted padding.
find: needleReturn first codepoint index of needle, or nil when absent.
findAll: needleReturn all codepoint indices where needle occurs.
fnMatch?: patternReturn true when the string matches a POSIX filename pattern.
fnMatchPathname?: patternReturn true when the string matches a POSIX filename pattern without wildcards matching slashes.
from: from to: toReturn a substring using half-open Unicode code point indexes.
join: stringsJoin a list of strings using self as the delimiter.
lengthReturn string length in Unicode code points.
lowerReturn the locale-invariant Unicode lowercase mapping.
lowerCaseReturn the locale-invariant Unicode lowercase mapping.
mapCharacters: dictionaryReturn a new string mapping characters through a dictionary.
match: patternReturn the first regular expression match, or false when there is no match.
matches?: patternReturn true when regular expression pattern matches the string.
replace: needle with: replacementReturn a new string replacing all occurrences of needle with replacement.
replaceFirst: needle with: replacementReturn a new string replacing the first occurrence of needle with replacement.
splitLinesReturn string lines without line terminators.
splitOn: delimitersReturn substrings split on a delimiter character, delimiter string, set of characters, or regular expression.
splitOn: delimiters do: callableCall callable for substrings split on a delimiter character, delimiter string, set of characters, or regular expression.
startsWith?: prefixReturn true when string starts with prefix.
substitute: pattern with: replacementReturn a new string replacing regular expression matches with replacement.
substringFrom: from to: toReturn a substring using half-open Unicode code point indexes.
substringsReturn non-empty substrings split on whitespace.
substrings: delimiterReturn substrings split on delimiter string, including empty substrings.
substrings: delimiter do: callableCall callable for each substring split on delimiter string.
substringsDo: callableCall callable for each non-empty substring split on whitespace.
titleTitlecase each whitespace-delimited word.
titleCaseTitlecase each whitespace-delimited word.
upperReturn the locale-invariant Unicode uppercase mapping.
upperCaseReturn the locale-invariant Unicode uppercase mapping.
widthReturn display width measured with wcswidth.
writeToFile: filenameWrite string to a file atomically and return filename.
Direct class methods
fromFile: filenameReturn file contents as a string.
fromPortableFilename: filenameDecode a string encoded by String>>asPortableFilename.
StringBuilder
- Kind
- class
- Binding
- constant
Builder that accumulates strings and characters.
Direct methods
append: valueAppend a string or character and return the receiver.
valueReturn the accumulated string.
Direct class methods
newReturn a new empty string builder.
StringIterator
- Kind
- class
- Binding
- constant
Iterator over string characters.
Direct methods
hasThis?Return true when the iterator has a current character.
next!Advance the iterator and return receiver.
thisReturn the current character.
Direct class methods
None.
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
< otherReturn true when receiver sorts before argument by package then local name.
<= otherReturn true when receiver sorts before or with argument by package then local name.
> otherReturn true when receiver sorts after argument by package then local name.
>= otherReturn true when receiver sorts after or with argument by package then local name.
compareWith: otherReturn -1, 0, or 1 when receiver sorts before, with, or after argument by package then local name.
keyword?Return true when symbol is in the keyword package.
nameReturn symbol name as string.
nameStartsWith?: prefixReturn true when symbol name starts with prefix.
packageReturn symbol package, or nil for uninterned symbols.
Direct class methods
gensym :optional nameReturn a fresh gensym or named uninterned symbol.
intern: name in: packageReturn interned symbol with name in package.
keyword: nameReturn interned keyword symbol with name.
uninterned: nameReturn 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.
Thread
- Kind
- class
- Binding
- constant
Thread executing a callable.
Direct methods
detached?Return true when thread is detached.
finished?Return true when thread has finished execution.
joinWait for thread completion and return its result.
joined?Return true when thread has been joined.
makeDaemonDetach thread so it does not need to be joined.
makeDetachedDetach thread so it does not need to be joined.
nameReturn thread name, or nil when it has none.
resultReturn thread result, or raise error if thread has not finished.
signal: callableQueue callable as an asynchronous signal for thread.
Direct class methods
currentReturn the current thread.
new: callableStart callable in a new thread and return the thread.
new: callable named: nameStart callable in a new named thread and return the thread.
UTCDateTime
- Kind
- class
- Binding
- constant
Calendar date and time in UTC.
Direct methods
asISO8601Return receiver formatted as ISO8601 UTC text.
asISO8601WithSeparator: separatorReturn receiver formatted as ISO8601 UTC text with separator.
asInstantReturn receiver converted to an Instant.
dayReturn UTC date-time day.
hourReturn UTC date-time hour.
microsecondReturn UTC date-time microsecond.
minuteReturn UTC date-time minute.
monthReturn UTC date-time month.
secondReturn UTC date-time second.
yearReturn UTC date-time year.
Direct class methods
fromISO8601: stringReturn UTC date-time parsed from simple ISO8601 text.
fromInstant: instantReturn UTC date-time representing instant.
fromYear: year month: month day: day hour: hour minute: minute second: second microsecond: microsecondReturn UTC date-time from component fields.
UUID
- Kind
- class
- Binding
- constant
Immutable 128-bit universally unique identifier.
Direct methods
asByteVectorReturn receiver bytes as a bytevector.
asStringReturn receiver as a canonical lowercase UUID string.
at: indexReturn byte at zero-based index.
compareWith: otherReturn -1, 0, or 1 comparing UUID bytes lexicographically.
Direct class methods
fromByteVector: bytevectorReturn a UUID from a 16-byte bytevector.
fromString: stringReturn a UUID parsed from its canonical string representation.
randomV4Return a random RFC 4122 version 4 UUID.
Vector
- Kind
- class
- Binding
- constant
Mutable indexed sequence of object values.
Direct methods
asIteratorReturn an iterator over vector elements.
asListReturn vector elements as a list.
asVectorReturn receiver.
at: indexReturn vector item at index.
at: index put: valueSet vector item at index.
lengthReturn vector length.
sortReturn a fresh vector sorted with element compareWith:.
sortUsing: callableReturn a fresh vector sorted with a two-argument comparator.
Direct class methods
None.
VectorIterator
- Kind
- class
- Binding
- constant
Iterator over vector elements.
Direct methods
hasThis?Return true when the iterator has a current value.
next!Advance the iterator and return receiver.
thisReturn the current value of the iterator.
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: listReturn a weak identity set containing the unique identities of list.
newReturn 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
newReturn a new empty weak-key identity dictionary.
newFromAList: alistReturn 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?Return true when referenced value is still alive.
valueReturn referenced value or signal an error if it is no longer alive.
value: valueSet referenced value.
Direct class methods
new: valueCreate a weak reference to value.
WeakValueIdentityDictionary
- Kind
- class
- Binding
- constant
Identity dictionary that does not keep values alive.
Direct methods
None.
Direct class methods
newReturn a new empty weak-value identity dictionary.
newFromAList: alistReturn a weak-value identity dictionary initialized from an association list.
XoshiroRNG
- Kind
- class
- Binding
- constant
xoshiro256** random number generator.
Direct methods
bytes: lengthReturn a bytevector with length random bytes.
Direct class methods
fromByteVector: stateReturn a xoshiro256** random number generator initialized from 32 state bytes.
randomReturn a xoshiro256** random number generator initialized from system entropy.
seed: seedReturn a xoshiro256** random number generator initialized from seed.
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
(:rest expression)
Evaluate expressions until one is falsey, else return last value.
any
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list :rest list)
Return true when callable returns truthy for any element tuple.
append
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest list)
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
(:rest body)
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
(:rest byte)
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
(:rest bytevector)
Concatenate all bytevector arguments.
bytevector-copy
- Kind
- primitive
- Binding
- constant
- Lambda list
(bytevector :optional 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 :rest body)
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
(:rest (test :rest body))
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.
current-restarts
- Kind
- primitive
- Binding
- constant
Return currently active restarts.
define
- Kind
- macro
- Binding
- constant
- Lambda list
(target . body)
Define a value, function, or dynamic variable.
define-class
- Kind
- macro
- Binding
- constant
- Lambda list
(name superclasses slot-names)
Define a class with superclasses and slot names.
define-condition-variable
- Kind
- macro
- Binding
- constant
- Lambda list
(name)
Define a condition variable with the given name.
define-constant
- Kind
- macro
- Binding
- mutable
- Lambda list
(target . body)
Define a constant value or function.
define-constructor
- Kind
- macro
- Binding
- constant
- Lambda list
(signature . body)
Define a class-side constructor and matching instance initializer.
define-macro
- Kind
- macro
- Binding
- mutable
- Lambda list
(target . body)
Define a macro from a signature or macro object.
define-message-queue
- Kind
- macro
- Binding
- constant
- Lambda list
(name capacity)
Define a message queue with the given name.
define-method
- Kind
- macro
- Binding
- constant
- Lambda list
(signature . body)
Define a method on a class for a selector.
define-mutex
- Kind
- macro
- Binding
- constant
- Lambda list
(name)
Define a mutex with the given name.
define-package
- Kind
- primitive
- Binding
- constant
- Lambda list
(package-designator :rest (:either used-package (used-package nickname)))
Define package and optionally add used packages.
define-rwlock
- Kind
- macro
- Binding
- constant
- Lambda list
(name)
Define a read-write lock with the given name.
delay
- Kind
- macro
- Binding
- constant
- Lambda list
(expression)
Create a promise for expression without evaluating it.
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
(bindings . body)
Temporarily bind dynamic variables during body.
environment?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is an environment.
eq?
- Kind
- primitive
- Binding
- constant
- Lambda list
(left :rest right)
Return true when all arguments are the same value identity.
equal?
- Kind
- primitive
- Binding
- constant
- Lambda list
(left :rest right)
Return true when all arguments are structurally equal.
eqv?
- Kind
- primitive
- Binding
- constant
- Lambda list
(left :rest right)
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 :rest list)
Return true when callable returns truthy for every element tuple.
export
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest symbol)
Mark symbols as exported from current package.
expt
- Kind
- primitive
- Binding
- constant
- Lambda list
(:optional base exponent)
Raise base to exponent, treat one argument as e^x, and return e with no arguments.
find-restart
- Kind
- primitive
- Binding
- constant
- Lambda list
(name)
Return active restart with eq name or nil.
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 :rest list)
Fold callable from the left across element tuples, stopping at shortest list.
fold-right
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable initial list :rest list)
Fold callable from the right across element tuples, stopping at shortest list.
for-each
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list :rest list)
Apply callable for each element tuple, stopping at shortest list.
force
- Kind
- closure
- Binding
- constant
- Lambda list
(future)
Force future and return its value.
format
- Kind
- primitive
- Binding
- constant
- Lambda list
(format-string :rest argument)
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
(:optional 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 :rest body)
Bind condition handler during dynamic extent of body.
if
- Kind
- special form
- Binding
- constant
- Lambda list
(condition then :optional 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.
invoke-restart
- Kind
- primitive
- Binding
- constant
- Lambda list
(name :rest arguments)
Invoke active restart with eq name.
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)
Construct an anonymous closure.
length
- Kind
- primitive
- Binding
- constant
- Lambda list
(list)
Return the length of a proper list.
let
- Kind
- macro
- Binding
- constant
- Lambda list
(bindings-or-name . body)
Evaluate body with lexical bindings, or create and call a named local function.
let*
- Kind
- macro
- Binding
- constant
- Lambda list
(bindings . body)
Evaluate body with sequential lexical bindings.
letrec
- Kind
- special form
- Binding
- constant
- Lambda list
((:rest (symbol value-expression)) :rest body)
Evaluate body in lexical scope with mutually recursive bindings.
list
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest value)
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
(module . resolvers)
Load module using optional resolver paths before configured 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 :optional 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 :optional fill)
Create vector with optional fill value.
map
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list :rest list)
Return list of callable results for each element tuple, stopping at shortest list.
max
- Kind
- primitive
- Binding
- constant
- Lambda list
(n :rest 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 :rest 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
(:rest expression)
Evaluate expressions until one is truthy, else return last value.
package
- Kind
- primitive
- Binding
- constant
- Lambda list
(package-designator)
Return package object for designator.
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
(module)
Record module as provided and return its name.
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 :rest list)
Reduce callable from the left across element tuples, stopping at shortest list.
reduce-right
- Kind
- primitive
- Binding
- constant
- Lambda list
(callable list :rest list)
Reduce callable from the right across element tuples, stopping at shortest list.
require
- Kind
- macro
- Binding
- constant
- Lambda list
(module . resolvers)
Load module unless already provided.
restart-bind
- Kind
- macro
- Binding
- constant
- Lambda list
(clause . body)
Bind one restart during body.
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)
Send selector to receiver, handling super sends specially.
set!
- Kind
- macro
- Binding
- constant
- Lambda list
(target value)
Set a lexical variable, self slot, or dynamic variable.
sin
- Kind
- primitive
- Binding
- constant
- Lambda list
(x)
Return sine of a real number.
sleep
- Kind
- primitive
- Binding
- constant
- Lambda list
(seconds)
Sleep for seconds.
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
(:rest string)
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.
unexport
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest symbol)
Mark symbols as not exported from current package.
unless
- Kind
- macro
- Binding
- constant
- Lambda list
(condition . body)
Evaluate body when condition is falsey.
unwind-protect
- Kind
- special form
- Binding
- constant
- Lambda list
(protected-expression :rest cleanup)
Always run cleanup forms; rethrow non-local exits.
use-package
- Kind
- primitive
- Binding
- constant
- Lambda list
(used-package-designator :key as)
Use package in current package, optionally by nickname only.
vector
- Kind
- primitive
- Binding
- constant
- Lambda list
(:rest value)
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
(condition . body)
Evaluate body when condition is truthy.
while
- Kind
- macro
- Binding
- constant
- Lambda list
(condition . body)
Evaluate body while condition is truthy, with break and continue in scope.
with-gensyms
- Kind
- macro
- Binding
- constant
- Lambda list
(symbols . body)
Evaluate body with symbols bound to fresh generated symbols.
with-mutex
- Kind
- macro
- Binding
- constant
- Lambda list
(mutex . body)
Evaluate body with mutex locked, unlocking on exit.
with-read-lock
- Kind
- macro
- Binding
- constant
- Lambda list
(rwlock . body)
Evaluate body with read lock held, unlocking on exit.
with-write-lock
- Kind
- macro
- Binding
- constant
- Lambda list
(rwlock . body)
Evaluate body with write lock held, unlocking on exit.
zero?
- Kind
- primitive
- Binding
- constant
- Lambda list
(value)
Return true when value is numerically zero.
λ
- Kind
- macro
- Binding
- constant
- Lambda list
(parameters . body)
Construct an anonymous closure.
ListTalk-implementation:%closure
- Kind
- macro
- Binding
- constant
- Lambda list
forms
Construct an anonymous closure from curly-brace reader syntax.
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 (:rest arg) :rest body)
Create closure with lexical scope.
ListTalk-implementation:%let
- Kind
- special form
- Binding
- constant
- Lambda list
((:rest (symbol value-expression)) :rest body)
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:%restart-bind
- Kind
- special form
- Binding
- constant
- Lambda list
(restart-expression :rest body)
Bind restart during dynamic extent of body.
ListTalk-implementation:%self-slot
- Kind
- macro
- Binding
- constant
- Lambda list
(slot-name)
Expand method-local slot shorthand to a self slot reference.
ListTalk-implementation:%send
- Kind
- special form
- Binding
- constant
- Lambda list
(receiver selector :rest argument)
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 :rest argument)
Evaluate and send selector using send invocation context.
ListTalk-implementation:%while
- Kind
- special form
- Binding
- constant
- Lambda list
(condition :rest body)
Evaluate body while condition is truthy.