## `listlib::setDifference` -- remove elements from a list

#### Introduction

`listlib::setDifference(`list1, list2`)` removes all elements from `list1`, that are given by `list2`.

#### Call(s)

`listlib::setDifference(list1, list2)`

#### Parameters

`list1, list2` | - | a MuPAD list

#### Returns

the first list without all elements of the second list

#### Related Functions

`_minus`

#### Details

- `listlib::setDifference` removes all elements of the list `list1` given by the second list `list2`.

- The order of the list is not preserved.

#### Example 1

`listlib::setDifference` removes `2`, `4`, `6` and `8` from the given list:

    >> listlib::setDifference([1, 2, 3, 4, 5, 6, 7, 8], [2, 4, 6, 8])

                                   [7, 5, 3, 1]

#### Changes

- used to be called `listtools::setDifference`

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000