Trait rustkell::DataList
[−]
[src]
pub trait DataList { fn tails(&self) -> Tails<Self>
where
Self: Sized; }
Operations on 'list'
Required Methods
fn tails(&self) -> Tails<Self> where
Self: Sized,
Self: Sized,
The tails function returns all final segments of the list, longest first.
Example
use rustkell::DataList; let v = vec![1,2,3,4]; for t in v.tails() { println!("{:?}", t); }
[1, 2, 3, 4]
[2, 3, 4]
[3, 4]
[4]
[]