Loading RustViz Engine...
Round-robin dispatch work across N servers using .cycle() and .take().
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn dispatch_tasks(tasks: &[&str], servers: &[&str]) -> Vec<(String, String)> {
tasks.iter()
.zip(servers.iter().cycle())
.map(|(&t, &s)| (t.to_string(), s.to_string()))
.collect()
}