You are looking at historical revision 44359 of this page. It may differ significantly from its current revision.

srfi-195

Documentation

An implementation of SRFI 195

SRFI 195

Usage

(import (srfi 195))
box
[procedure] (box [OBJ ...]) -> box

Collect 0 or more values in a box.

box?
[procedure] (box? OBJ) -> boolean

A box?

unbox
[procedure] (unbox BOX) -> * ...

Returns 0 or more values from the box.

set-box!
[procedure] (set-box! BOX [OBJ ...])

Replaces the boxed values with a new tuple of 0 or more values.

box-arity
[procedure] (box-arity BOX) -> fixnum

Returns the count of boxed values.

unbox-value
[procedure] (unbox-value BOX IDX) -> *

Returns the boxed value in the tuple at position IDX.

set-box-value!
[procedure] (set-box-value! BOX IDX OBJ)

Replaces the boxed value in the tuple at position IDX with the object OBJ.

Requirements

box

test test-utils

Author

SRFI Marc Nieper-Wißkirchen. For CHICKEN Kon Lovett.

Repository

This egg is hosted on the CHICKEN Subversion repository:

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

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

0.1
CHICKEN 5 release.

License

Copyright (C) 2020 Marc Nieper-Wißkirchen.

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 (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", 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.