Outdated egg!
This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
symbol-utils
Documentation
Argument Conventions
SYM is a symbol
OBJ is an arbitrary Scheme object
A printname is the string form of a symbol.
symbol-value-utils
Usage
(require-extension symbol-value-utils)
unbound-value
[syntax] (unbound-value) -> #<unbound>unbound-value?
[syntax] (unbound-value? OBJ) -> booleanunbound?
[syntax] (unbound? SYM) -> booleansymbol-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) -> booleanunspecified?
[syntax] (unspecified? OBJ) -> booleansymbol-name-utils
Usage
(require-extension symbol-name-utils)
keyword->symbol
[procedure] (keyword->symbol KEY) -> symbolkeyword->uninterned-symbol
[procedure] (keyword->uninterned-symbol KEY) -> symbolsymbol->keyword
[procedure] (symbol->keyword SYM) -> keywordsymbol-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) -> booleanX & Y are symbol.
symbol-printname<?
[procedure] (symbol-printname<? X Y) -> booleanX & Y are symbol.
symbol-printname-length
[procedure] (symbol-printname-length SYM) -> integermax-symbol-printname-length
[procedure] (max-symbol-printname-length SYMS) -> integerSYMS is a list of symbol.
symbol-qualified-utils
Usage
(require-extension symbol-qualified-utils)
make-qualified-symbol
[procedure] (make-qualified-symbol PREFIX NAME) -> symbolPREFIX & NAME are either symbol or string.
make-qualified-uninterned-symbol
[procedure] (make-qualified-uninterned-symbol PREFIX NAME) -> symbolqualified-symbol?
[procedure] (qualified-symbol? SYM) -> booleansymbol->qualified-string
[procedure] (symbol->qualified-string SYM) -> stringsymbol-lolevel-utils
Usage
(require-extension symbol-lolevel-utils)
interned-symbol?
[procedure] (interned-symbol? SYM) -> booleanUsage
(require-extension symbol-utils)
Author
Version history
- 1.2.0
- Add keyword->uninterned-symbol & keyword->symbol.
- 1.1.0
- Add symbol-name-utils, symbol-value-utils, symbol-qualified-utils, symbol-lolevel-utils modules.
- 1.0.3
- Add types & better type checking.
- 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.