Next: , Previous: , Up: libutils refs   [Index]


7.2.2 Decomposing library references

The following bindings are exported by the library (vicare libraries).

Function: library-reference-decompose obj

Interpret obj as a symbolic expression representing a library reference as specified by R6RS. Return two values: the list of identifiers, the version reference. If obj is not a valid library reference: return #f and #f.

(library-reference-decompose
   '(alpha beta (1 (<= 2) (or 10 (and (>= 4) (>= 2))))))
⇒ (alpha beta) (1 (<= 2) (or 10 (and (>= 4) (>= 2))))
Function: library-reference->identifiers obj

If obj is a valid library reference as specified by R6RS, return the list of identifiers; else return #f.

Function: library-reference->version obj

If obj is a valid library reference as specified by R6RS, return the version reference; else return #f.