mirror of
https://github.com/nushell/nushell.git
synced 2024-12-24 16:09:11 +01:00
ba6d8ad261
related to - https://github.com/nushell/nushell/issues/10233 - https://github.com/nushell/nushell/pull/10293 - https://github.com/nushell/nushell/pull/10292 inspired by @kubouch # Description this PR adds a `repeat` command to the standard library # User-Facing Changes a new `repeat` command in `std` ```nushell repeat anything a bunch of times, yielding a list of *n* times the input # Examples repeat a string > "foo" | std repeat 3 | str join "foofoofoo" Usage: > repeat <n> Flags: -h, --help - Display the help message for this command Parameters: n <int>: the number of repetitions, must be positive Input/output types: ╭───┬───────┬───────────╮ │ # │ input │ output │ ├───┼───────┼───────────┤ │ 0 │ any │ list<any> │ ╰───┴───────┴───────────╯ ``` # Tests + Formatting a new test called `repeat_things` in `test_std.nu` # After Submitting |
||
---|---|---|
.. | ||
logger_tests | ||
test_asserts.nu | ||
test_dirs.nu | ||
test_formats.nu | ||
test_iter.nu | ||
test_setup_teardown.nu | ||
test_std.nu | ||
test_xml.nu |