Skip to content

Convenience functions for populating an array with values from a range.

License

Unlicense and 2 other licenses found

Licenses found

Unlicense
UNLICENSE
Unknown
COPYING
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

cryptopatrick/arrange

arrange

Convenience functions for populating an array with values from a range.

Build status

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/arrange

Installation

This crate works with Cargo and is on crates.io.
The package will be regularly updated. Add it to your Cargo.toml like so:

[dependencies]
arrange = "0.1.3"

Examples

Usage is simple:

extern crate arrange;

use arrange::IntRange;

fn main() {
    assert_eq!(IntRange::new(1, 10, 1).range(), [1, 2, 3, 4, 5, 6, 7, 8, 9]);
}

Status of implementation

Some may want to negative indexing but we won't implement that for the time being since they can be prone to bugs.

Still a lot of work to do.

Make sure to use version 0.1.1 or above.

About

Convenience functions for populating an array with values from a range.

Resources

License

Unlicense and 2 other licenses found

Licenses found

Unlicense
UNLICENSE
Unknown
COPYING
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages