more 1.12.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 83

More Dart — Literally

Pub Package Build Status Coverage Status GitHub Issues GitHub Forks GitHub Stars GitHub License

Various extensions that make Dart a better place:

  • cache.dart is a collection of different caching strategies and their expiry policy.
  • char_matcher.dart is a model for character classes, their composition and operations on strings.
  • collection.dart is a collection of collection types (bi map, bit list, multi set, range, and string).
  • int_math.dart is a collection of common mathematical functions on integers.
  • iterable.dart is a collection of iterables and iterators.
  • number.dart provides fractional and complex arithmetic.
  • ordering.dart a fluent interface for building comparator functions.
  • printer.dart a fluent interface for configuring sophisticated formatter.

And there are more to come ...

This library is open source, stable and well tested. Development happens on GitHub. Feel free to report issues or create a pull-request there. General questions are best asked on StackOverflow.

The package is hosted on dart packages. Up-to-date class documentation is created with every release.

Misc

Installation

Follow the installation instructions on dart packages.

Import one or more of the packages into your Dart code using:

import 'package:more/cache.dart';
import 'package:more/char_matcher.dart';
import 'package:more/collection.dart';
import 'package:more/int_math.dart';
import 'package:more/iterable.dart';
import 'package:more/number.dart';
import 'package:more/ordering.dart';
import 'package:more/printer.dart';

History

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.

License

The MIT License, see LICENSE.

Changelog

1.12.0

  • Add the number package.
    • Move Fraction class into this package.
    • Add support for Complex numbers.
  • Add the groupBy iterable.

1.11.0

  • Add the printer package.

1.10.0

  • Drop Dart 1.0 compatibility.

1.9.0

  • Dart 2.0 strong-mode compatibility required the following breaking changes:
    • Replace callers of range() with either new IntegerRange() or new DoubleRange().
    • Removed padding argument from partition(). To migrate replace broken calls-sites with partitionWithPadding().

1.8.1

  • Removed empty(), emptyIterator(), emptyIterable() since these are part of the core library now.
  • Add periodic iterable tools (monthly, weekly, daily, hourly, ...).

1.8.0

  • Ordering.reversed, Ordering.nullsFirst, Ordering.nullsLast, and Ordering.lexicographical are now properties for consistency with the Iterable protocol.
  • Various optimization and improvements on the Range class.

1.7.2

  • Cleanup after micro library migration.
  • Move to latest Dart provided mixins.

1.7.1

  • Cleanup after micro library migration.
  • Address linter warnings.
  • Better test coverage.

1.7.0

  • Migrate to micro libraries.
  • Add caching library.

1.6.0

  • Use generic method syntax.

1.5.3

  • Fix pubspec SDK constraints.

1.5.2

  • Fix linter warnings.
  • Improve documentation.

1.5.1

  • Strong compiler compliant.

1.5.0

  • Fix various typos and linter issues.
  • Reformat documentation.

1.4.0

  • Migrate to Travis.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  more: ^1.12.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:more/cache.dart';
import 'package:more/char_matcher.dart';
import 'package:more/collection.dart';
import 'package:more/int_math.dart';
import 'package:more/iterable.dart';
import 'package:more/number.dart';
import 'package:more/ordering.dart';
import 'package:more/printer.dart';
  
Version Uploaded Documentation Archive
1.12.1 Sep 27, 2018 Go to the documentation of more 1.12.1 Download more 1.12.1 archive
1.12.0 Sep 16, 2018 Go to the documentation of more 1.12.0 Download more 1.12.0 archive
1.11.5 Sep 15, 2018 Go to the documentation of more 1.11.5 Download more 1.11.5 archive
1.11.4 Sep 9, 2018 Go to the documentation of more 1.11.4 Download more 1.11.4 archive
1.11.3 Sep 9, 2018 Go to the documentation of more 1.11.3 Download more 1.11.3 archive
1.11.2 Sep 9, 2018 Go to the documentation of more 1.11.2 Download more 1.11.2 archive
1.11.1 Sep 1, 2018 Go to the documentation of more 1.11.1 Download more 1.11.1 archive
1.11.0 Sep 1, 2018 Go to the documentation of more 1.11.0 Download more 1.11.0 archive
1.10.1 Jul 28, 2018 Go to the documentation of more 1.10.1 Download more 1.10.1 archive
1.10.0 Jul 28, 2018 Go to the documentation of more 1.10.0 Download more 1.10.0 archive

All 62 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
66
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
83
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
collection ^1.14.0 1.14.11
Dev dependencies
test ^1.3.0