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

outdated

Generate the powerset of any iterable.

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
15
pub points
0%
popularity

Publisher

unverified uploader

Generate the powerset of any iterable.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on powerset