Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 366 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 366 Bytes

repeater

This crate provides the repeat! macro, which lets you repeat tokens. In its simplest form, repeat! takes a repeat count and the tokens to repeat:

repeat!(5 => #(repeat this 5 times)*)

See the documentation for more advanced usage, including loop variables, interpolations and nesting.

Future plans

  • Non-integer loop variables, array syntax