[2017][rust][1.x] remove unnecessary take

sorbet
Alpha Chen 7 years ago
parent e84427d454
commit 68c7b41fc6

@ -11,7 +11,7 @@ pub fn solve(input: &str) -> Result<String, Error> {
// let offset = 1;
let offset = input.len() / 2;
let offset_iter = input.iter().cycle().skip(offset).take(input.len());
let offset_iter = input.iter().cycle().skip(offset);
Ok(
input
.iter()

Loading…
Cancel
Save