Skip to content

SED4906/try_zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages