Next: exceptions, Previous: bbtrees, Up: Top [Contents][Index]
For all the procedures: the argument ITEM< must be the ordering procedure: a predicate
function accepting two arguments and returning a boolean, #t
if the first argument is strictly
less than the second. For numeric collected items: ITEM< can be <
; for string
collected items: ITEM< can be string<?
.
The following bindings are exported by the library (pfds sets)
.
Return a new empty set ordered by the procedure ITEM<.
Return #t
if OBJ is a set, #f
otherwise.
Return #t
if item is in set, #f
otherwise.
Return a new set created by inserting item into set.
Return a new set created by removing item from set.
Return an exact integer representing the number of items in set.
Return #t
if set1 is a proper subset of set2, #f
otherwise. That is, if all
items of set1 are in set2, and there is at least one item of set2 not in
set1.
Return #t
if set1 is a subset of set2, #f
otherwise, i.e. if all items of
set1 are in set2.
Return #t
if every item of set1 is in set2, and vice versa, #f
otherwise.
Return #t
if set2 is a subset of set1, #f
otherwise.
Return #t
if set2 is a proper subset of set1, #f
otherwise.
Return the new set created by applying the procedure mapper to each item of set.
Return the value obtained by iterating the procedure COMBINE over each item of set and an accumulator value (in this order). The value of the accumulator is initially ACCUM-BASE, and the return value of COMBINE is used as the accumulator for the next iteration.
Return the set containing all the items of the given list, ordered by ITEM<.
Return all the items of set as a list.
Return the union of set1 and set2, i.e. a new set that contains all items of set1 and set2.
Return the intersection of set1 and set22, i.e. a new set of all items that are in both set1 and set2.
Return the difference of set1 and set2, i.e. the set of all items in set1 that are not in set2.
Return the ordering procedure used internally by set.
Next: exceptions, Previous: bbtrees, Up: Top [Contents][Index]
This document describes version 0.5.0-devel.1 of MMCK PFDS.