fromPairs

Returns a newly allocated associative array from pairs

This is primarily for std.typecons.Tuple type objects and works on a range of tuples of size 2. If any other range is given to it, then it will treat every pair of elements as a Tuple and do the same thing.

fromPairs
(
R1
)
(
R1 r1
)
if (
from!"std.range".isInputRange!R1
)

Parameters

r1
Type: R1

range of elements to create an associated array out of

Return Value

Type: auto

Associative array

Meta

Since

0.0.1