chickadee » symbol-utils

symbol-utils

Documentation

Argument Conventions

SYM is a symbol

OBJ is an arbitrary Scheme object

A printname is the string form of a symbol.

unbound-value

(unbound-value) => #<unbound> syntax

unbound-value?

(unbound-value? OBJ) => boolean syntax

unbound?

(unbound? SYM) => boolean syntax

symbol-value

(symbol-value SYM [DEF]) => * syntax

Returns SYM binding or DEF when unbound.

unspecified-value

(unspecified-value) => #<unspecified> procedure

unspecified-value?

(unspecified-value? OBJ) => boolean syntax

unspecified?

(unspecified? OBJ) => boolean syntax

symbol->keyword

(symbol->keyword SYM) => keyword procedure

Note that keyword->symbol is just (string->symbol (symbol->string KWD)).

symbol-printname-details

(symbol-printname-details SYM) => (string string) procedure

Returns 2 values: the string, and any qualification prefix string, for SYM

symbol-printname=?

(symbol-printname=? X Y) => boolean procedure

X & Y are symbol.

symbol-printname<?

(symbol-printname<? X Y) => boolean procedure

X & Y are symbol.

symbol-printname-length

(symbol-printname-length SYM) => integer procedure

max-symbol-printname-length

(max-symbol-printname-length SYMS) => integer procedure

SYMS is a list of symbol.

make-qualified-symbol

(make-qualified-symbol PREFIX NAME) => symbol procedure

PREFIX & NAME are either symbol or string.

make-qualified-uninterned-symbol

(make-qualified-uninterned-symbol PREFIX NAME) => symbol procedure

qualified-symbol?

(qualified-symbol? SYM) => boolean procedure

symbol->qualified-string

(symbol->qualified-string SYM) => string procedure

interned-symbol?

(interned-symbol? SYM) => boolean procedure

Usage

(require-extension symbol-utils)

Author

Kon Lovett

Version history

1.0.2
Fix for ticket #630.
1.0.1
1.0.0
Hello.

License

Copyright (C) 2010 Kon Lovett. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contents »