try_zip 0.2.1

Zip with a shorter or optional second iterator.
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 3.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SED4906

try_zip

A variant of zip that can handle a shorter/optional second iterator.

Given (0..10).zip(0..5), zip would stop after the shorter iterator 0..5 ends.

(0..10).try_zip(Some(0..5)), however, will continue, using None for the second value of the tuple. (The tuple returned by TryZip is of the type (A::Item, Option<B::Item>))

This crate was written for easily parsing IRC join messages.