ddash.algorithm.frompairs

Returns a newly allocated associative array from pairs

Members

Functions

fromPairs
auto fromPairs(R1 r1)

Returns a newly allocated associative array from pairs

Examples

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

Meta