chain_from_last 0.1.0

Iterator adaptor for chaining from last item.
Documentation
  • Coverage
  • 22.22%
    2 out of 9 items documented1 out of 4 items with examples
  • Size
  • Source code size: 15.74 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s 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

fn it_works(){
    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"]);
}