tableinsert

lpmoo-1.2/doc/builtins/tableinsert · 524 B

From the archive lpmoo-1.2.tar.gz

Download the archive   « Back to the archive contents

NAME
	tableinsert - insert a new key/value pair into a table

SYNOPSIS
	table tableinsert(table, key, value)

DESCRIPTION
	A new table is created by pairing the `key' and `value'
	arguments (which may be of any MOO value) and inserting them
	into a copy of the table given by the `table' argument. If
	`key' is already bound in the table, its associated value will
	be replaced by `value'. The new table is returned.

	Note that the original table is not modified.

SEE ALSO
	tablemap, tabledelete, tablekeys, tablevalues

Site Stats

Snippets: 1791
Codebases: 571