The OpenD Programming Language

intersectionHeader

@safe pure nothrow
string[]
intersectionHeader
(
T
)
(
return scope const(StringMap!T)[] objects
)

Parameters

objects const(StringMap!T)[]

array of objects (string maps)

Return Value

Type: string[]

common keys of all the objects in the observed order.

Examples

import mir.test: should;

auto o1 = ["a", "b"].StringMap!int([8, 8]);
auto o2 = ["b", "c"].StringMap!int([8, 8]);
auto o3 = ["c", "d"].StringMap!int([8, 8]);
[o1, o2].intersectionHeader.should = ["b"];
[o3, o2].intersectionHeader.should = ["c"];

Meta