A Range is used to represent integer ranges, such a file offset spans.
Much of the set API is presented to modify and test Ranges, looking somewhat like sets of intergers but extended slightly to accept ranges as well as individual integers so that one may say “R.add(start, end)” and so forth.
Also provided:
Span, a simple start:end range.
overlap: return the overlap of two Spans
spans: return an iterable of Spans for all contiguous sequences in the ordered integers supplied
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cs.range-20160828.tar.gz
(5.7 kB
view details)
File details
Details for the file cs.range-20160828.tar.gz.
File metadata
- Download URL: cs.range-20160828.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
976cca0ed881765eee3026989468de407a7be30ed6f4d89f795e078bb9242589
|
|
| MD5 |
3d6789e6a27a2350a7e254da291e0c04
|
|
| BLAKE2b-256 |
5e82ab90e5307a18f6eed7baaa056bcf6547569332581251c2730422f7f318e1
|