5 ms·
Your playground is what the article author did, except they used `itertools::Itertools::format` so that the entire collection or formatted string doesn't need t
by Arnavion 4y ago
Your playground is what the article author did, except they used `itertools::Itertools::format` so that the entire collection or formatted string doesn't need to be built up-front but can instead be fed to the `std::fmt::Formatter` element-by-element.
- spoiler 4y agoAh, I understand that part, but I assumed they were looking for the most ergonomic/succinct and idiomatic approach (ie not needing to reach for a crate). But it doesn't have the same performance characteristics as using itertools (which is better here)