Skip to content

maia-s/repeater-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Proc-macro for repeating tokens

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md
Zlib
LICENSE-ZLIB.md

Stars

Watchers

Forks

Packages

No packages published

Languages