An open API service indexing awesome lists of open source software.

https://github.com/euank/parse-numeric-range-rb

Ruby library to parse numeric ranges
https://github.com/euank/parse-numeric-range-rb

Last synced: about 1 year ago
JSON representation

Ruby library to parse numeric ranges

Awesome Lists containing this project

README

          

# Parse Numeric Range

Parses expressions like 1-10,20-30. Returns an energetic (as opposed to lazy) array.

## Usage

```ruby
require 'parse_numeric_range'

ParseNumericRange.parse("1,3..5")
# => [1, 3, 4, 5]
```

## TODO

* return a lazy enumerator