Expands each item in this
to multiple items, one for each item in newParams
.
In other words, takes the cartesian product of [ the items in this
] and newParams
.
Note: When only a single key is being added, use the simpler combine
for readability.
this = [ {a:1}, {b:2} ]
newParams = [ {x:1}, {y:2} ]
this.combineP(newParams) = [ {a:1,x:1}, {a:1,y:2}, {b:2,x:1}, {b:2,y:2} ]
Expands each item in this
into zero or more items.
Each item has its parameters expanded with those returned by the expander
.
Note: When only a single key is being added, use the simpler expand
for readability.
this = [ a , b , c ]
this.map(expander) = [ f(a) f(b) f(c) ]
= [[a1, a2, a3] , [ b1 ] , [] ]
merge and flatten = [ merge(a, a1), merge(a, a2), merge(a, a3), merge(b, b1) ]
Generated using TypeDoc
Provides doc comments for the methods of CaseParamsBuilder and SubcaseParamsBuilder. (Also enforces rough interface match between them.)