7.2.8.11. replicate_value¶
- replicate_value(value, n=2, copy=True)[source]¶
Replicates n times the input value.
- Parameters
- Returns
A list with the value replicated n times.
- Return type
Example:
>>> import schedula as sh >>> fun = sh.partial(replicate_value, n=5) >>> fun({'a': 3}) ({'a': 3}, {'a': 3}, {'a': 3}, {'a': 3}, {'a': 3})