t3x.org / sketchy / library /

SketchyLISP Function Library

* Multiply numbers. R5RS
+ Add numbers. R5RS
- Subtract numbers. R5RS
< Check whether a seqeunce of numbers is in strict ascending order. R5RS
<= Check whether a seqeunce of numbers is in strict non-descending order. R5RS
= Check whether all numbers in a sequence are equal. R5RS
> Check whether a sequence of numbers is in strict descending order. R5RS
>= Check whether a seqeunce of numbers is in strict non-ascending order. R5RS
abs Compute the absolute value of a number. R5RS
append Append lists. R5RS
assoc Retrieve an association from an association list. R5RS
assp Retrieve an association from an association list. R5.91RS
assq Retrieve an association from an association list. R5RS
assv Retrieve an association from an association list. R5RS
boolean? Check whether a datum is a truth value. R5RS
caaaar ... cddddr Access elements of nested pairs. R5RS
caaar ... cdddr Access elements of nested pairs. R5RS
caar ... cddr Access elements of nested pairs. R5RS
case Select cases. R5RS
char-alphabetic? Test whether a char is alphabetic. R5RS
char-ci<? Case-insensitively test whether a sequence of chars is in lexically ascending order. R5RS
char-ci<=? Case-insensitively test whether a sequence of chars is in lexically non-descending order. R5RS
char-ci=? Case-insensitively test whether all chars in a sequence are equal. R5RS
char-ci>? Case-insensitively test whether a seqeunce of chars is in lexically descending order. R5RS
char-ci>=? Case-insensitively test whether a sequence of chars is in lexically non-ascending order. R5RS
char-downcase Convert a char to lower case. R5RS
char-lower-case? Test whether a char is a lower case letter. R5RS
char-numeric? Test whether a char is numeric. R5RS
char-upcase Convert a char to upper case. R5RS
char-upper-case? Test whether a char is an upper case letter. R5RS
char-whitespace? Test whether a char is white space. R5RS
char<? Test whether a sequence of chars is in lexically ascending order. R5RS
char<=? Test whether a sequence of chars is in lexically non-descending order. R5RS
char=? Test whether all chars in a sequence are equal. R5RS
char>? Test whether a sequence of chars is in lexically descending order. R5RS
char>=? Test whether a sequence of chars is in lexically non-ascending order. R5RS
count Recursively count the atoms of a list. Ext.
depth Compute the depth of a list. Ext.
digits Constants for representing decimal digits. Core
divide Divide two numbers, giving a quotient and a remainder. Core
equal? Compare two forms. R5RS
eqv? Compare data. R5RS
even? Test whether a number is even. R5RS
exists Test whether given property exists in a sequence of lists. R5.91RS
explode Explode a symbol into a list of symbols. Ext.
expt Raise a number to a power. R5RS
factorial Compute the factorial of a number. Ext.
filter Extract members that match a given predicate from a list. R5.91RS
for-all Test whether all members of a sequence of lists have a given property.
fold-left Iterate over lists. R5.91RS
fold-right Iterate over lists right-associatively. R5.91RS
gcd Compute the greatest common divisor of a sequence of numbers. R5RS
head? Check whether an expression is the head of another. Ext.
id Express identity. Ext.
implode Implode a list of symbols into a symbol. Ext.
if Conditional evaluation. R5RS
integer Convert a number to an integer. Core
integer? Test whether a number is an integer number. R5RS
intersection Compute the intersection of sets. Ext.
iota Generate sequences of numbers. Ext.
last Extract the last member of a list. Ext.
lcm Compute the least common multiple of a sequence of numbers. R5RS
length Compute the length of a list. R5RS
let* Bind values sequentially. R5RS
list Create a list from arguments. R5RS
list-ref Extract a member at a given offset from a list. R5RS
list-tail Extract the tail of a list beginning at a given offset. R5RS
list? Check whether a datum is a (proper) list. R5RS
map Map a function over lists. R5RS
map-car Map a function over a list. Core
map-cdr Apply a function to each tail of a list. Ext.
max Find the maximum of a sequence of numbers. R5RS
member Return the sublist starting at the first member of a list that is equal to a given datum. R5RS
memp Extract the tail of a list whose first member has a given property. R5.91RS
memq Return the sublist starting at the first member of a list that is identical to a given symbol. R5RS
memv Return the sublist starting at the first member of a list that is equivalent to a given atom. R5RS
min Find the minimum of a sequence of numbers. R5RS
modulo Compute the modulus of two numbers. R5RS
n* Compute the product of two natural numbers. Core
n+ Add two natural numbers. Core
n- Subtract two natural numbers. Core
n< Check whether two numbers are in ascending order. Core
n<= Check whether two natural numbers are in non-descending order. Core
n> Check whether two natural numbers are in descending order. Core
n>= Check whether two natural numbers are in non-ascending order. Core
natural Convert an integer or natural number to a natural number. Core
natural? Test whether a number is a natural number or zero. Core
ndivide Divide two natural numbers, giving a quotient and a remainder. Core
negate Compute the negative value of a number. Core
negative? Check whether a number is negative. R5RS
neq? Negative identity. Core
newline Write a newline character. R5RS
nexpt Raise a natural number to a power. Core
non-negative? Check whether a number is positive or zero. Core
normalize Normalize a number by removing leading zeroes and plus signs. Core
not Logical negation. R5RS
not-equal? Compare data with negative result. Ext.
nqoutient Divide two natural numbers. Core
nremainder Compute the division remainder of two natural numbers. Core
null? Check whether a datum is an empty list. R5RS
number->string Convert a number to a string. R5RS
odd? Test whether a number is odd (not even). R5RS
ordered? Check whether the members of a list are in a given monotonic order. Ext.
pair Build an association list from two lists. Ext.
permute Generate permutations of a set. Ext.
positive? Check whether a number is positive. R5RS
pred Find the predecessor of a decimal digit. Core
predicate-iterator Turn a binary predicate into a variadic predicate. Core
product Compute the product of a sequence of positive numbers. Ext.
qsort Sort a list using the Quicksort algorithm. Ext.
quotient Divide two numbers, returning their integer quotient. R5RS
read-line Read a newline-terminated sequence of characters. Ext.
remainder Compute the division remainder of two numbers. R5RS
remove Remove data from lists. R5.91RS
remp Remove members from lists. R5.91RS
remq Remove symbols from lists. R5.91RS
remv Remove atoms from lists. R5.91RS
replace Replace data in forms. Ext.
reverse Reverse a list. R5RS
sqrt Compute the square root of a natural number. R5RS
string Create a string from arguments. R5RS
string->number Convert a string to a number. R5RS
string-append Append strings. R5RS
string-ci<? Case-insensitively test whether a sequence of strings is in lexically ascending order. R5RS
string-ci<=? Case-insensitively test whether a sequence of strings is in lexically non-descending order. R5RS
string-ci=? Case-insensitively test whether all strings in a sequence are equal. R5RS
string-ci>? Case-insensitively test whether a sequence of strings is in lexically descending order. R5RS
string-ci>=? Case-insensitively test whether a sequence of strings is in lexically non-ascending order. R5RS
string-length Compute the length of a string. R5RS
string-ref Extract a char at a given offset from a string. R5RS
string<? Test whether a sequence of strings is in lexically ascending order. R5RS
string<=? Test whether a sequence of strings is in lexically non-descending order. R5RS
string=? Test whether all strings in a sequence are equal. R5RS
string>? Test whether a sequence of strings is in lexically descending order. R5RS
string>=? Test whether a sequence of strings is in lexically non-ascending order. R5RS
substitute Substitute variables in forms. Ext.
substring Extract a substring from a string. R5RS
sum Compute the sum of a sequence of positive numbers. Ext.
succ Find the successor of a decimal digit. Core
tail? Check whether an expression is the tail of another one. Ext.
union Compute the union of sets. Ext.
unique Transform a list into a set. Ext.
vector Create a vector from arguments. R5RS
zero? Test whether a number is zero. R5RS