jrdev/drange

Discontinuous ranges

v1.0.1 2017-07-03 01:23 UTC

This package is not auto-updated.

Last update: 2024-04-28 01:11:16 UTC


README

Build Status Dependency Status

Discontinuous ranges.

$drange = new DRange(1, 5); // [ 1-5 ]
$drange->add(6); // [ 1-6 ]
$drange->add(8); // [ 1-6, 8 ]
$drange->add(7); // [ 1-8 ]
$drange->subtract(1, 3); // [ 4-8 ]

Documentation

Soon...

Installation

Install the latest version with:

$ composer require jrdev/drange

License

Licensed under the MIT licence.