a-range icon indicating copy to clipboard operation
a-range copied to clipboard

Write quick and explict ranges in Rust

Results 4 a-range issues
Sort by recently updated
recently updated
newest added

Fixes #11. I've kept the original tests intact, for now. Meanwhile, the doc-tests can serve our documentation needs.

We recently added these docs: https://github.com/killercup/a-range/blob/ce391ed856e5fb52e9445496ccec046b91359ed5/src/lib.rs#L54-L58 This behavior is tested in this unit test: https://github.com/killercup/a-range/blob/ce391ed856e5fb52e9445496ccec046b91359ed5/src/lib.rs#L393-L397 It is also possible for this to become a [doc test](https://doc.rust-lang.org/1.29.2/rustdoc/documentation-tests.html#attributes) (as I've just found...

help wanted
good first issue
Hacktoberfest
in progress

- [ ] `for i in a_range::from(1).up_to(5).iter() { let _i: &i32 = i; }` compiles - [ ] Tests added as doc tests on `iter()` method

help wanted
good first issue
Hacktoberfest

Either the crate-level or the Range docs should describe how to write a custom type that can be used as an index. (This will require you to impl `num_traits::One` for...

help wanted
good first issue
Hacktoberfest