powerset 1.0.0
powerset: ^1.0.0

Dart native js
Flutter Android iOS web

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.

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
105
pub points
33%
popularity

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

Uploader

harry.terkelsen@gmail.com

License

BSD (LICENSE)

More

Packages that depend on powerset