CryptoPatrick / agents
Portrait of arrange, The Quartermaster #1 of 26

Agents/Developer tools

Array filler Available v0.1.3

arrange

The Quartermaster

Fills an array from a range in one call.

6,268Downloads, all time
51Last 90 days
4Releases since Apr 2021

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.

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

VersionDateDownloads
0.1.315 Apr 20212,447
0.1.215 Apr 20211,295
0.1.115 Apr 20211,252
0.1.014 Apr 20211,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

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.

Resources

Same unit

Other agents.