arrayAccessStringCtor

construct valid value access strings

string
arrayAccessStringCtor
pure
(
string sep1
,
string sep2
,
string[][] variants...
)
in { assert (sep1 != sep2); assert (variants.length > 0); auto l = variants[0].length; assert (all!(a => a.length == l)(variants)); }

Examples

enum s1 = " ", s2 = "|";
static assert( isCompatibleArrayAccessStrings( 2, arrayAccessStringCtor( s1, s2, ["x","y"], ["alpha","beta"] ), s1, s2 ) );

Meta