more 4.0.1 more: ^4.0.1 copied to clipboard
More Dart — Literally. Collecting, iterating, caching, mathematics, matching, ordering, and formatting easily.
More Dart — Literally #
A collection of extensively tested extensions that make Dart a better place:
|cache||Caching strategies and their expiry policy.|
|char_matcher||Character classes, their composition, and operations on strings.|
|comparator||Common comparators, and extensions to perform advanced operations.|
|feature||Information about the runtime environment.|
|functional||Types and features known from functional programming.|
|graph||Graph-theory objects and algorithms.|
|interval||Continuous interval data type over a comparable type.|
|math||Common mathematical functions.|
|number||Number types: fraction, complex, quaternion.|
|printer||Fluent interface to configure sophisticated formatter.|
|tuple||Tuple extension methods on generic records.|
And there are more to come ...
Follow the installation instructions on dart packages.
Import the all-including parent package:
Or one or more of the specific packages into your Dart code:
import 'package:more/async.dart'; import 'package:more/cache.dart'; import 'package:more/char_matcher.dart'; import 'package:more/collection.dart'; import 'package:more/comparator.dart'; import 'package:more/feature.dart'; import 'package:more/functional.dart'; import 'package:more/graph.dart'; import 'package:more/interval.dart'; import 'package:more/math.dart'; import 'package:more/number.dart'; import 'package:more/printer.dart'; import 'package:more/temporal.dart'; import 'package:more/tuple.dart';
The goal of the library is to provide a loose collection of carefully curated utilities that are not provided by the Dart standard library. All features must be well tested. New features must have significant advantages over alternatives, such as code reduction, readability improvement, speed increase, memory reduction, or improved accuracy. In case of doubt, consider filing a feature request before filing a pull request.
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 code grew and became more useful in many other places, so I created this reusable library.
The MIT License, see LICENSE.