partition 1.0.1 copy "partition: ^1.0.1" to clipboard
partition: ^1.0.1 copied to clipboard

A library for partitioning iterables based on predicates. By default, partitioning happens lazily over the source iterable but eager partitioning can be used by setting the lazy parameter or using the [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add partition

With Flutter:

 $ flutter pub add partition

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  partition: ^1.0.1

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

Import it

Now in your Dart code, you can use:

import 'package:partition/partition.dart';
2
likes
130
pub points
48%
popularity

Publisher

verified publisheralexmeuer.com

A library for partitioning iterables based on predicates. By default, partitioning happens lazily over the source iterable but eager partitioning can be used by setting the lazy parameter or using the partionNow extension method.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection

More

Packages that depend on partition