TradeZoro
Notifications

Reference

Maps

Lookup tables from a key to a value.

map.clear(id)

Removes every key.

Returns: nothing

ParameterType
idmap

map.contains(id, key)

True if the key is present.

Returns: true or false

ParameterType
idmap
keyany

map.copy(id)

A copy of the map.

Returns: the same type as the first argument

ParameterType
idmap

map.get(id, key)

The value for key (na if absent).

Returns: vals0

ParameterType
idmap
keyany

map.keys(id)

An array of the keys, in insertion order.

Returns: keys0

ParameterType
idmap

map.new()

A new map (write the types: map.new<string, float>()).

Returns: newmap

map.put(id, key, value)

Sets the value for key.

Returns: nothing

ParameterType
idmap
keyany
valueany

map.put_all(id, id2)

Copies every key of id2 into id.

Returns: nothing

ParameterType
idmap
id2map

map.remove(id, key)

Removes the key and returns its value.

Returns: vals0

ParameterType
idmap
keyany

map.size(id)

Number of keys.

Returns: a whole number

ParameterType
idmap

map.values(id)

An array of the values, in insertion order.

Returns: valarr0

ParameterType
idmap

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home