rust-itertools Questions
1
Solved
I am rewriting a python program into rust and I am struggling to translate this line:
itertools.product(range(0,8), repeat=n)
What I am trying to achieve is something like this: https://pastebin.co...
Antiworld asked 24/3, 2023 at 13:35
2
Solved
In Python, I can do:
from itertools import product
k = 3
for kmer in product("AGTC", repeat=k):
print(kmer)
In Rust, I can force the behavior of k=3 by:
#[macro_use] extern crate itertools;
...
Aquilar asked 23/5, 2017 at 15:46
1
© 2022 - 2025 — McMap. All rights reserved.