powerset 1.1.0

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

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.