struct.insert()

Inserts a key-value pair into a structure.

struct.insert( structure, key, value [, allowoverwrite ] )

Returns: Boolean

Argument Description
structure
struct, required

Structure to contain the new key-value pair.

key
string, required

Key that contains the inserted value.

value
any, required

Value to add.

allowoverwrite
boolean, optional

Whether to allow overwriting a key. Default: False.

Examples

There are currently no examples for this function

See also