walkmap.superstructure
single indexing structure for walkmap objects
add-to-superstructure
(add-to-superstructure o)(add-to-superstructure s o)Return a superstructure like s with object o added. If o is a collection, return a superstructure like s with each element of o added. If only one argument is supplied it will be assumed to represent o and a new superstructure will be returned.
It is an error (and an exception may be thrown) if
sis not a map;ois not a map, or a sequence of maps.
index-vertex
(index-vertex s o v)Return a superstructure like s in which object o is indexed by vertex v. It is an error (and an exception may be thrown) if
sis not a map;ois not a map;odoes not have a value for the key:id;vis not a vertex.
index-vertices
(index-vertices s o)Return a superstructure like s in which object o is indexed by its vertices. It is an error (and an exception may be thrown) if
sis not a map;ois not a map;odoes not have a value for the key:id.