quiver_iterables 1.0.1

  • README.md
  • Installing
  • Versions
  • 53

Quiver Iterables

A collection of utilities for generating and manipulating Dart Iterables.

Build Status Coverage Status


API Docs

concat, count, cycle, enumerate, merge, partition, range, and zip create, transform, or combine Iterables in different ways, similar to Python's itertools.

min, max, and extent retrieve the minimum and maximum elements from an iterable.

GeneratingIterable is an easy way to create lazy iterables that produce elements by calling a function. A common use-case is to traverse properties in an object graph, like the parent relationship in a tree.

InfiniteIterable is a base class for Iterables that throws on operations that require a finite length.

1.0.1 - 2017-09-07

  • Apply function generics across the package. From @jackd.
  • Add @alwaysThrows annotations where applicable. From @jackd.

1.0.0+1 - 2017-09-07

  • Strong-mode fix in InfiniteIterable.fold(), from @giorgiofran.


  • Split from quiver-dart

Use this package as a library

1. Depend on it

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

  quiver_iterables: "^1.0.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:quiver_iterables/iterables.dart';
Version Uploaded Documentation Archive
1.0.1 Sep 7, 2017 Go to the documentation of quiver_iterables 1.0.1 Download quiver_iterables 1.0.1 archive
1.0.0+1 Sep 7, 2017 Go to the documentation of quiver_iterables 1.0.0+1 Download quiver_iterables 1.0.0+1 archive
1.0.0 Jan 13, 2016 Go to the documentation of quiver_iterables 1.0.0 Download quiver_iterables 1.0.0 archive
1.0.0-dev.1 Nov 18, 2015 Go to the documentation of quiver_iterables 1.0.0-dev.1 Download quiver_iterables 1.0.0-dev.1 archive


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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


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


Detected platforms: Flutter, web, other

No platform restriction found in libraries.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error.

    Strong-mode analysis of lib/src/merge.dart failed with the following error:

    line: 28 col: 31
    The method tear-off 'compare' has type '(Comparable<dynamic>, Comparable<dynamic>) → int' that isn't of expected type '(dynamic, dynamic) → int'. This means its parameter or return type does not match what is expected.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use quiver_iterables.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.21.0 <2.0.0
meta ^1.1.0 1.1.5
Dev dependencies
test >=0.12.0 <0.13.0