Next Previous Up Top Contents Index

2.6 The COMMON-EXTENSIONS module

fill-table!

Function

Summary

Fills a table with the keys and elements supplied.

Signature

fill-table! table keys-and-elements => table 

Arguments

table
An instance of <table>.

keys-and-elements

An instance of <sequence>.

Values

table
An instance of <table>.

Library

common-extensions

Module

common-extensions

Description

Modifies table so that it contains the keys and elements supplied in the sequence keys-and-elements.

This function interprets keys-and-elements as key-element pairs, that is, it treats the first element as a table key, the second as the table element corresponding to that key, and so on. The keys and elements should be suitable for table.

Because keys-and-elements is treated as a sequence of paired key-element values, it should contain an even number of elements; if it contains an odd number of elements, fill-table! ignores the last element (which would have been treated as a key).


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index