Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing a JPEG Decoder in Rust – Part 2: Implementation I. Parent comment
let codes: Vec<HuffmanCode> = data_table.iter() .zip(&code_lengths) .zip(&code_table) .map(|((&value, &length), &code)| { HuffmanCode { length: length, code: code, value: value, } }) .collect();