### Related

##### subset

subset;

{0,1,2,3,4,5,6,7,8,9};

Calculate

subset;

{7,8,9};

Calculate

##### subset

subset;

{0,1,2,3,4,5,6,7,8,9};

Calculate

##### subset

subset;

{1,2,3,4,5,6,7,8,9,1...

Calculate

? subset;

Calculate

##### subset

subset;

{20000, 47650, 54000...

Calculate

##### subset

subset;

{1,3,4,5,7,8,12,16};

Calculate

? subset;

Calculate

##### subset

subset;

{1,3,4,5,7,8,12,16};

Calculate

subset;

{w,x,y,z};

Calculate

### subset

Run Example
```(%i1)xprimep(x) := integerp(x) and (x <
32);
(%o1)               xprimep(x) := integerp(x) and (x < 32)
(%i2) cardinality (subset (integer_partitions(30,3), lambda ([x], every (xprimep, x))));
(%o2)                                 91
(%i3) ```
Run Example
```xprimep(x) := integerp(x) and (x <
32);
(%o1)               xprimep(x) := integerp(x) and (x < 32)
(%i2) cardinality (subset (integer_partitions(61,3), lambda ([x], every (xprimep, x))));
(%o2)                                 101
(%i3) ```
Run Example
```expr:n;
(%o1)                                  n
(%i2) makelist(''expr, n, 1, 100);
(%o2) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99, 100]
(%i3) set(a,b);
(%o3)                               {a, b}
(%i4) first([1,2]);
(%o4)                                  1
(%i5) map(first, [[1, 2]]);
(%o5)                                 [1]
(%i6) for n:1 thru 10 do (y:2*n, (return(if(y=2*n) then n)));
(%o6)                                  1
(%i7) subset(setify(makelist(''expr, n, 1, 10)), lambda([n], evenp(n)));
(%o7)                          {2, 4, 6, 8, 10}
(%i8) map(reverse, map(lambda([n], 1/2^n), setify(makelist(''expr, n, 1, 10))));
(%o8)             {2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}
(%i9) ```

Help for Subset