staticReplicate

Replicates first argument by times specified by second argument.

Members

Aliases

staticReplicate
alias staticReplicate = ExpressionList!()
Undocumented in source.
staticReplicate
alias staticReplicate = ExpressionList!(TS[0], staticReplicate!(TS[0], n - 1))
Undocumented in source.

Manifest constants

n
enum n;
Undocumented in source.

Examples

Example

template isBool(T)
{
    enum isBool = is(T == bool);
}

static assert(allSatisfy!(isBool, staticReplicate!(bool, 2))); 
static assert([staticReplicate!("42", 3)] == ["42", "42", "42"]);

Meta