Skip to content

Latest commit

Β 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

from-back

A Rust library for indexing and slicing from the back of a sequence.

use from_back::idx;

let list = vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
let slice = &list[idx!(2..^3)];
assert_eq!(slice, &[2, 3, 4, 5, 6]);

About

πŸ”™ A Rust library for indexing and slicing from the back of a sequence.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages