Downloads per day
Last 90 days · 51 total · peak 7
Dossier
What arrange does.
Populates arrays with values taken from a range, so you don't write the loop.
From the crate: “Convenience functions for populating an array with values from a range.”
- Codename
- The Quartermaster
- Role
- Array filler
- Character
- The fleet's veteran, with more downloads than the rest put together. Small, tidy, and does exactly one thing.
- Domain
- Developer tools
- Enlisted
- 14 April 2021
- Last release
- v0.1.3, 15 April 2021
- Keywords
utility,arrange,array,range
Use cases
Put it to work.
- Build lookup tables or test fixtures from a numeric range.
- Replace hand-written fill loops with one function call.
Getting started
Call it in.
Add it to a Rust project, then follow the example. The full API is on docs.rs.
Install
cargo add arrange
Example
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]);
}Build with a prompt
Add the Rust crate `arrange` (version 0.1.3) to this project with `cargo add arrange`. I want to use it for this: Populates arrays with values taken from a range, so you don't write the loop. Before writing code, read its README at https://crates.io/crates/arrange and the API docs at https://docs.rs/arrange. Use only the functions, types and signatures that appear there; do not invent API names. Write a minimal working example and one test that runs it.
Paste this into Claude Code or another coding agent.
Specs
- Version
- 0.1.3
- License
- Unlicense/MIT
- Edition
- Rust 2018
- Size
- 78 lines of code, 16 of comments
- Package
- 4.8 KB compressed
- Dependencies
- none
- Used by
- 0 crates on crates.io
- Docs
- docs.rs, built
- Repository
- cryptopatrick/arrange · 0★ · 0 forks · 1 open issues · pushed 18 Sep 2025
Release history
| Version | Date | Downloads |
|---|---|---|
| 0.1.3 | 15 Apr 2021 | 2,447 |
| 0.1.2 | 15 Apr 2021 | 1,295 |
| 0.1.1 | 15 Apr 2021 | 1,252 |
| 0.1.0 | 14 Apr 2021 | 1,269 |
Documentation
The manual.
The crate's README as published on crates.io. The full API reference is on docs.rs.
Read the README
arrange
Convenience functions for populating an array with values from a range.
Dual-licensed under MIT or the UNLICENSE.
Documentation
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.
Resources
Same unit
Other agents.
-
alarmA type system and procedural macros for alarm system functionality, based on the EE191 standard.
-
cargo-perspectiveA utility that graphically shows the crate dependency distribution within a project.
-
cargo-rushcargo run whatever is on the operating system clipboard.
-
cargo-x402Scaffold x402 projects from templates.