powerset 1.1.0 copy "powerset: ^1.1.0" to clipboard
powerset: ^1.1.0 copied to clipboard

A utility function for generating the powerset of an iterable. This generates all subsequences of an iterable, even for infinite iterables.

powerset #

Generates the power set of an iterable. Works for infinite iterables.

Build Status

Usage #

A simple usage example:

import 'package:powerset/powerset.dart';

main() {
  print(powerset([1, 2, 3]));
  // prints [[], [1], [2], [1, 2], [3], [1, 3], [2, 3], [1, 2, 3]]
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
135
pub points
0%
popularity

Publisher

unverified uploader

A utility function for generating the powerset of an iterable. This generates all subsequences of an iterable, even for infinite iterables.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on powerset