chain_from_last 0.2.0

Iterator adaptor for chaining from last item.
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 4 items with examples
  • Size
  • Source code size: 15.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.69 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • yogevm15/chain_from_last
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • yogevm15

Chain from last

An iterator adaptor that chains the iterator with an iterator built from the last item.

Example

use chain_from_last::ChainFromLastExt;

let words: Vec<_> = "lorem ipsum dolor;sit;amet"
    .split(" ")
    .chain_from_last(|l| l.split(";"))
    .collect();

assert_eq!(words, vec!["lorem", "ipsum", "dolor", "sit", "amet"]);