Various extensions that make Dart a better place:
bit_list.dartis a space efficient list storing boolean values.
char_matcher.dartis a model for character classes, their composition and operations on strings.
fraction.dartprovides exact rational number arithmetic.
int_math.dartis a collection of common mathematical functions on integers.
iterable.dartis a collection of iterables and iterators.
multiset.dataa data structure where elements might appear more than once.
ordering.darta fluent interface for building comparator functions.
range.dartis a function to create lists of arithmetic progressions.
And there is more to come ...
Add the dependency to your package's pubspec.yaml file:
dependencies: more: ">=1.0.0 <2.0.0"
Then on the command line run:
$ pub get
To use one or more of the packages in your Dart code write:
import 'package:more/bit_list.dart'; import 'package:more/char_matcher.dart'; import 'package:more/fraction.dart'; import 'package:more/int_math.dart'; import 'package:more/iterable.dart'; import 'package:more/multiset.dart'; import 'package:more/ordering.dart'; import 'package:more/range.dart';
This library started in April 2013 as I was working through the puzzles of Project Euler and encountered some missing features in Dart. Over time the library grew and became more useful in many other places, so I created this reusable library.
The MIT License, see LICENSE.
Add this to your package's pubspec.yaml file:
dependencies: more: ^1.3.5
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:more/char_matcher.dart'; import 'package:more/collection.dart'; import 'package:more/fraction.dart'; import 'package:more/int_math.dart'; import 'package:more/iterable.dart'; import 'package:more/ordering.dart';
|1.17.0||May 10, 2019|
|1.16.0||Feb 26, 2019|
|1.15.0||Feb 24, 2019|
|1.14.2||Feb 17, 2019|
|1.14.1||Feb 16, 2019|
|1.14.0||Feb 16, 2019|
|1.13.0||Feb 2, 2019|
|1.12.1||Sep 27, 2018|
|1.12.0||Sep 16, 2018|
|1.11.5||Sep 15, 2018|