Module ddash.algorithm.frompairs

Returns a newly allocated associative array from pairs

Example

import std.typecons: tuple;
assert([tuple(1, 2), tuple(3, 4) ].fromPairs == [1: 2, 3: 4]);

Functions

NameDescription
fromPairs(r1) Returns a newly allocated associative array from pairs