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.

symbol-value-utils

Usage

(import symbol-value-utils)

unbound-value?

(unbound-value? OBJ) -> booleansyntax

Compiled code only!

unbound?

(unbound? SYM) -> booleansyntax

Compiled code only!

symbol-value

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

Returns SYM binding or DEF when unbound.

Compiled code only!

unspecified-value

unspecified-valueprocedure

unspecified-value?

(unspecified-value? OBJ) -> booleansyntax

unspecified?

(unspecified? OBJ) -> booleansyntax

symbol-name-utils

Usage

(import symbol-name-utils)

->symbol

->symbol OBJprocedure

->uninterned-symbol

->uninterned-symbol OBJprocedure

keyword->symbol

keyword->symbol KEYprocedure

keyword->uninterned-symbol

keyword->uninterned-symbol KEYprocedure

symbol->keyword

symbol->keyword SYMprocedure

symbol-printname-details

symbol-printname-details SYMprocedure

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

symbol-printname=?

symbol-printname=? X Yprocedure

X & Y are symbol.

symbol-printname<?

symbol-printname<? X Yprocedure

X & Y are symbol.

symbol-printname-length

symbol-printname-length SYMprocedure

max-symbol-printname-length

max-symbol-printname-length SYMSprocedure

SYMS is a list of symbol.

symbol-lolevel-utils

Usage

(import symbol-lolevel-utils)

interned-symbol?

interned-symbol? SYMprocedure

(symbol-utils gen)

Usage

(import (symbol-utils gen))

make-gensym

make-gensymprocedure

Returns a gensym procedure.

PREFIX
(or symbol string) ; prefix for generated uninterned symbols.
GENSYM
([PREFIX] -> uninterned-symbol) ; gensym procedure.

Usage

(import symbol-utils)

Requirements

utf8

test test-utils

Author

Kon Lovett

Repository

This egg is hosted on the CHICKEN Subversion repository:

https://anonymous@code.call-cc.org/svn/chicken-eggs/release/5/symbol-utils

If you want to check out the source code repository of this egg and you are not familiar with Subversion, see this page.

Version history

2.5.0
Removed unbound-value.
2.4.0
Added (symbol-utils gen) module.
2.3.0
2.2.0
2.1.0
Added ->symbol & ->uninterned-symbol.
2.0.1
Removed symbol-qualified-utils.
2.0.0
CHICKEN 5 release.
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-2022 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 »