Function fromPairs
Returns a newly allocated associative array from pairs
auto auto fromPairs(R1)
(
R1 r1
)
if (from .std .range .isInputRange!R1);
This is primarily for std
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.
Parameters
Name | Description |
---|---|
r1 | range of elements to create an associated array out of |
Returns
Associative array
Since
0.0.1