Skip to content

Instantly share code, notes, and snippets.

@Lucretiel
Created May 25, 2021 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lucretiel/a90620a48d5aa209ca97434003a0d84f to your computer and use it in GitHub Desktop.
Save Lucretiel/a90620a48d5aa209ca97434003a0d84f to your computer and use it in GitHub Desktop.
fn main() {
let data = vec![1, 2, 3, 4];
let iter = generate::generate![1, 2, ..data];
let data: Vec<i32> = iter.collect();
println!("{:#?}", data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment