table-insert!

Name

table-insert! -- Associates a key with a value in a table

Type: generic

Synopsis

table-insert!( table key value, prev-value);

Arguments

table

An instance of <table> to be extended

key

The key to insert.

value

The value to be associated with the key.

Return Values

prev-value

The value previously associated with given key, or #f if the key was not present in the table.

Description

This generic function on tables is used to insert entries into a table.

The given key must be compatible with the table, or an error is signalled.