dstruct.map

Undocumented in source.

Members

Functions

dup
HashMap!(K, V) dup(const(HashMap!(K, V)) originalMap)

Copy an existing map into a new mutable map.

dup
HashMap!(K, V) dup(const(HashMap!(K, V)) originalMap)

Copy an existing map into a new mutable map.

items
auto items(HashMap!(K, V) map)
auto items(const(HashMap!(K, V)) map)
auto items(immutable(HashMap!(K, V)) map)

Produce a range through the items of a map. (A key-value pair)

keys
auto keys(HashMap!(K, V) map)
auto keys(const(HashMap!(K, V)) map)
auto keys(immutable(HashMap!(K, V)) map)

Produce a range through the keys of a map.

setDefault
V1 setDefault(V1[K] map, K key, V2 def)

Get or create a value from/in an associative array.

setDefault
V setDefault(V[K] map, K key)

Get or create a value from/in an associative array.

values
auto values(HashMap!(K, V) map)
auto values(const(HashMap!(K, V)) map)
auto values(immutable(HashMap!(K, V)) map)

Produce a range through the values of a map.

Structs

HashMap
struct HashMap(K, V)

This struct implements a hashmap type, much like the standard associative array type.

Item
struct Item(K, V)

An item from a map.

ItemRange
struct ItemRange(K, V)

A range through a series of items in the map.

KeyRange
struct KeyRange(K, V)

This is a range which runs through a series of keys in map.

ValueRange
struct ValueRange(K, V)

This is a range which runs through a series of values in a map.

Templates

HashMapKeyType
template HashMapKeyType(T)
Undocumented in source.
HashMapValueType
template HashMapValueType(T)
Undocumented in source.

Meta