intervalsets

Set implementation of disjoint intervals

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-22 05:28

Tags

Installation

nimble install intervalsets
choosenim install intervalsets
git clone https://github.com/autumngray/intervalsets

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
intervalsets - - - - - - -

Source

Repository https://github.com/autumngray/intervalsets
Homepage https://github.com/autumngray/intervalsets
Registry Source nimble_official

README

intervalsets

Implementation of a set of disjoint intervals.

Usage

var s = toIntervalSet({'A'..'Z', 'a'..'z'})
echo s # {'A'..'Z', 'a'..'z'}
excl(s, 'e'..'f')
echo s # {'A'..'Z', 'a'..'d', 'g'..'z'}
incl(s, 'e')
echo s # {'A'..'Z', 'a'..'e', 'g'..'z'}

echo toIntervalSet([0..0, 2..4, 5..6]) # {0, 2..6}