symbol-utils

  1. symbol-utils
  2. Documentation
    1. Argument Conventions
    2. unbound-value
    3. unbound-value?
    4. unbound?
    5. symbol-value
    6. unspecified-value
    7. unspecified-value?
    8. unspecified?
    9. symbol->keyword
    10. symbol-printname-details
    11. symbol-printname=?
    12. symbol-printname<?
    13. symbol-printname-length
    14. max-symbol-printname-length
    15. make-qualified-symbol
    16. make-qualified-uninterned-symbol
    17. qualified-symbol?
    18. symbol->qualified-string
    19. interned-symbol?
  3. Usage
  4. Author
  5. Version history
  6. License

Documentation

Argument Conventions

SYM is a symbol

OBJ is an arbitrary Scheme object

A printname is the string form of a symbol.

unbound-value

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

unbound-value?

[syntax] (unbound-value? OBJ) => boolean

unbound?

[syntax] (unbound? SYM) => boolean

symbol-value

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

Returns SYM binding or DEF when unbound.

unspecified-value

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

unspecified-value?

[syntax] (unspecified-value? OBJ) => boolean

unspecified?

[syntax] (unspecified? OBJ) => boolean

symbol->keyword

[procedure] (symbol->keyword SYM) => keyword

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

symbol-printname-details

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

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

symbol-printname=?

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

X & Y are symbol.

symbol-printname<?

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

X & Y are symbol.

symbol-printname-length

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

max-symbol-printname-length

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

SYMS is a list of symbol.

make-qualified-symbol

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

PREFIX & NAME are either symbol or string.

make-qualified-uninterned-symbol

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

qualified-symbol?

[procedure] (qualified-symbol? SYM) => boolean

symbol->qualified-string

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

interned-symbol?

[procedure] (interned-symbol? SYM) => boolean

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.