Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 27 utilities.

mulf v1.0

A modifying version of multiplication, similar to incf.

Provides
mulf
Source Code
 
divf v1.0

A modifying version of division, similar to decf.

Provides
divf
Source Code
 
sec v1.0

Compute the secant of a number z.

Provides
sec
Source Code
 
csc v1.0

Compute the cosecant of a number z.

Provides
csc
Source Code
 
cot v1.0

Compute the cotangent of a number z.

Provides
cot
Source Code
 
asec v1.0

Compute the arcsecant of a number z.

Provides
asec
Source Code
 
acsc v1.0

Compute the arccosecant of a number z.

Provides
acsc
Source Code
 
acot v1.0

Compute the arccotangent of a number z.

Provides
acot
Source Code
 
rerank-array v1.0

Reshape array to have dimensions specified by dimensions, possibly with a different rank than the original. The dimensions of array and the given dimensions must have the same total number of elements.

Provides
rerank-array
Source Code
 
hash-table-key-exists-p v1.0

Does key exist in hash-table?

Provides
hash-table-key-exists-p
Source Code
 
dohash v1.0

Iterate over the hash table table, executing body, with key and value bound to the keys and values of the hash table respectively. Return result from the iteration form.

Provides
dohash
Source Code
 
copy-cons v1.0

Copy the cons cell c.

Provides
copy-cons
Source Code
 
copy-hash-table v1.0

Returns a copy of hash table table, with the same keys and values as the table. The copy has the same properties as the original, unless overridden by the keyword arguments.

Before each of the original values is set into the new hash-table, key is invoked on the value. As key defaults to cl:identity, a shallow copy is returned by default.

Provides
copy-hash-table
Source Code
 
xor v1.0

Evaluates its arguments one at a time, from left to right. If more then one argument evaluates to a true value no further datums are evaluated, and nil is returned as both primary and secondary value. If exactly one argument evaluates to true, its value is returned as the primary value after all the arguments have been evaluated, and t is returned as the secondary value. If no arguments evaluate to true nil is retuned as primary, and t as secondary value.

Provides
xor
Requires
with-gensyms
Source Code
 
multiple-value-prog2 v1.0

Evaluates first-form, then second-form, and then forms. Yields as its value all the value returned by second-form.

Provides
multiple-value-prog2
Source Code
 
disjoin v1.0

Returns a function that applies each of predicate and more-predicate functions in turn to its arguments, returning the primary value of the first predicate that returns true, without calling the remaining predicates. If none of the predicates returns true, nil is returned.

Provides
disjoin
Requires
ensure-function
Source Code
 
conjoin v1.0

Returns a function that applies each of predicate and more-predicate functions in turn to its arguments, returning nil if any of the predicates returns false, without calling the remaining predicates. If none of the predicates returns false, returns the primary value of the last predicate.

Provides
conjoin
Source Code
 
compose v1.0

Returns a function composed of function and more-functions that applies its ; arguments to to each in turn, starting from the rightmost of more-functions, and then calling the next one with the primary value of the last.

Provides
compose
Requires
make-gensym-list, ensure-function
Source Code
 
multiple-value-compose v1.0

Returns a function composed of function and more-functions that applies its arguments to each in turn, starting from the rightmost of more-functions, and then calling the next one with all the return values of the last.

Provides
multiple-value-compose
Requires
make-gensym-list, ensure-function
Source Code
 
copy-array v1.0

Returns an undisplaced copy of array, with same fill-pointer and adjustability (if any) as the original, unless overridden by the keyword arguments.

Provides
copy-array
Source Code
 
proper-list-p v1.0

Returns true if object is a proper list.

Provides
proper-list-p
Source Code
 
proper-list v1.0

Type designator for proper lists. Implemented as a satisfies type, hence not recommended for performance intensive use. Main usefulness as a type designator of the expected type in a type-error.

Provides
proper-list
Requires
proper-list-p
Source Code
 
mappend v1.0

Applies function to respective element(s) of each list, appending all the all the result list to a single list. function must return a list.

Provides
mappend
Source Code
 
copy-file v1.0

Copy a file from from to to.

Provides
copy-file
Requires
copy-stream, with-output-to-file, with-input-from-file
Source Code
 
copy-stream v1.0

Reads data from input and writes it to output. Both input and output must be streams, they will be passed to read-sequence and write-sequence and must have compatible element-types.

Provides
copy-stream
Requires
sub-interval-numeric-types
Source Code
 
maxf v1.0

Modify-macro for max. Sets place designated by the first argument to the maximum of its original value and numbers.

Provides
maxf
Source Code
 
minf v1.0

Modify-macro for min. Sets place designated by the first argument to the minimum of its original value and numbers.

Provides
minf
Source Code