simplify_ranges 1.0.0 copy "simplify_ranges: ^1.0.0" to clipboard
simplify_ranges: ^1.0.0 copied to clipboard

Merge and normalize adjacent or overlapping integer ranges.

example/simplify_ranges_example.dart

import 'package:simplify_ranges/simplify_ranges.dart';

void main() {
  const ranges = [
    [1, 2],
    [3, 4],
    [2, 3]
  ];

  print(simplifyRanges(ranges)); // => [[1, 4]]
}
1
likes
150
pub points
0%
popularity

Publisher

verified publishermarinvitlov.com

Merge and normalize adjacent or overlapping integer ranges.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on simplify_ranges