Function replicate

Repeats a string a given number of times.

extern(C) Value replicate(
  Value args
);

Parameters

NameDescription
args an attrset with n (non-negative integer) and s (the string to repeat)

Returns

A Nix string containing s repeated n times.