Class Wb-Map

A class of functional maps represented as weight-balanced binary trees. This is
the default implementation of maps in FSet.

Part of:

package fset, class map

Direct Superclass

mapThe abstract class for FSet functional maps. It is a structure class.

Slot

contents
default

Direct Method

arbReturns an arbitrary member or pair of a set, bag, or map. Specifically,
on a nonempty set, retu...
at-rankOn a set, returns the element with rank rank; on a bag, returns
that element with its multiplic...
compareReturns one of :less, :greater, :equal, or :unequal according as x
is less than, greate...
composeReturns a new map with the same domain as map1, which maps each member
of that domain to the re...
convertConverts the collection to the specified type. Some methods may
take additional keyword argument...
domainReturns the domain of the map, that is, the set of keys mapped by the map.
domain-contains?Returns true iff the domain of the map or seq contains x. (The domain
of a seq is the set of v...
empty?Returns true iff the collection is empty.
greatestOn a set, returns two values: the greatest member of the set and
true; on a bag, returns three va...
internal-do-mapCalls elt-fn on successive pairs of the map (as two arguments); when done,
calls value-fn on ...
iteratorReturns an iterator for the collection. (These are stateful iterators and
are not thread-safe; i...
leastOn a set, returns two values: the smallest member of the set and
true; on a bag, returns three va...
lessOn a set, removes value1 from it if present, returning the updated set.
On a bag, removes valu...
lookupIf collection is a map, returns the value to which key is mapped.
If collection is a seq, t...
map-difference-2Returns, as two values: a map containing all the pairs that are in map1
but not map2, with th...
map-intersectionReturns a map containing all the keys that are in the domains of both
map1 and map2, where th...
map-unionReturns a map containing all the keys of map1 and map2, where the
value for each key containe...
range-contains?Returns true iff the range of the map or seq contains x. (The range
of a seq is the set of mem...
rankIf collection is a set or bag that contains value, returns the rank of
value in the orderin...
restrictReturns a map containing only those pairs of map whose keys are
also in set.
restrict-notReturns a map containing only those pairs of map whose keys are
not in set.
sizeReturns the number of members in a set, seq, or bag, or the number of
pairs in a map. The size o...
verify
withOn a set, adds value1 to it, returning the updated set. On a bag, adds
value2 occurrences of...
with-defaultReturns a new map or seq with the same contents as collection but whose
default is now new-def...

Other Method

countIf collection is a Lisp sequence, this simply calls cl:count. On an FSet
collection, the def...
count-ifIf collection is a Lisp sequence, this simply calls cl:count-if. On an
FSet collection, the ...
count-if-notIf collection is a Lisp sequence, this simply calls cl:count-if-not.
On an FSet collection, t...
defaultReturns the default for the map or seq, i.e., the value returned by lookup
when the supplied ke...
filterReturns a new collection containing those members or pairs of collection
for which fn returns...
findIf collection is a Lisp sequence, this simply calls cl:find. On an FSet
collection, the defa...
find-ifIf collection is a Lisp sequence, this simply calls cl:find-if. On an
FSet collection, the ...
find-if-notIf collection is a Lisp sequence, this simply calls cl:find-if-not.
On an FSet collection, th...
imageReturns a new collection containing the result of applying fn to each
member of collection, w...
rangeReturns the range of the map, that is, the set of all values to which keys
are mapped by the map.