Function advent_solutions::advent2017::knot_hash::hash_lengths [] [src]

pub fn hash_lengths(max_num: u8, lengths: &[u8], rounds: usize) -> Vec<u8>

In this example, the first two numbers in the list end up being 3 and 4; to check the process, you can multiply them together to produce 12.

let hashed = knot_hash::hash_lengths(4, &[3, 4, 1, 5], 1);
assert_eq!(hashed[0], 3);
assert_eq!(hashed[1], 4);