Power Set

Calculates all the subsets of a set.

Input: TextResult: Text

Text input

Tool options

Examples

List all combinations of read, write

List all combinations of read, write. The input is a small public learning fixture; it contains no private production data.

Input

read,write

Expected answer


read
write
read,write
Item delimiter
,
List all combinations of json, csv

List all combinations of json, csv. The input is a small public learning fixture; it contains no private production data.

Input

json,csv

Expected answer


csv
json
json,csv
Item delimiter
,
List all combinations of red, blue, green

List all combinations of red, blue, green. The input is a small public learning fixture; it contains no private production data.

Input

red,blue,green

Expected answer


red
blue
green
red,blue
red,green
blue,green
red,blue,green
Item delimiter
,
List all combinations of draft, live

List all combinations of draft, live. The input is a small public learning fixture; it contains no private production data.

Input

draft,live

Expected answer


live
draft
draft,live
Item delimiter
,
List all combinations of yes, no, maybe

List all combinations of yes, no, maybe. The input is a small public learning fixture; it contains no private production data.

Input

yes,no,maybe

Expected answer


no
yes
maybe
yes,no
no,maybe
yes,maybe
yes,no,maybe
Item delimiter
,
Power set

Input

1 2 4

Expected answer


4
2
1
2 4
1 4
1 2
1 2 4
Item delimiter

Format reference: Power Set background and specification

Parameters

ParameterDefault valueInput and choices
Item delimiter","Escape sequences such as \n, \r and \t are supported

Related tools

Browse arithmetic / logic tools