struct.insert()

Inserts a key-value pair into a structure.

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

Returns: Boolean

Argument Description
struct
struct, required

Structure to contain the new key-value pair.

Alias: structure, object

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.

Alias: overwrite

Examples

There are currently no examples for this function

See also