### The Maxima on-line user's manual

Algebra Calculator

#### Emptyp

Function: emptyp (<a>) Return `true` if and only if <a> is the empty set or the empty list.

Examples:

```          (%i1) map (emptyp, [{}, []]);
(%o1)                     [true, true]
(%i2) map (emptyp, [a + b, {{}}, %pi]);
(%o2)                 [false, false, false]```

```(%o1)                                true
(%i2) ```

### Related Examples

##### emptyp-makelist-permut

n2:4;

a:makelist(i,i,1,n2);

b:permut(a);

Calculate

##### emptyp-permutations-rest

a:[1,2,3];

b:permutations(a);

rest(b);

Calculate

##### emptyp-first-if-lambda-makelist-map-mod-setify-subset

expr:n;

makelist(''expr, n, 1...

set(a,b);

Calculate

##### emptyp-makelist

n2:4;

a:makelist(i,i,1,n2);

b:MinimumChangePermut...

Calculate

##### emptyp-first-if-lambda-makelist-map-mod-setify-subset

expr:n;

makelist(''expr, n, 1...

set(a,b);

Calculate

##### emptyp-makelist-permutations

n2:3;

a:makelist(i,i,1,n2);

b:permutations(a);

Calculate

##### emptyp-permutations-rest

a:[1,2,3];

b:permutations(a);

rest(b);

Calculate

##### emptyp-permutations-rest

a:[1,2,3];

b:permutations(a);

rest(b);

Calculate

##### emptyp-makelist-permutations

n2:4;

a:makelist(i,i,1,n2);

b:minimum_change_perm...

Calculate

? emptyp;

Calculate