Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 565 Bytes

list-removeitems.md

File metadata and controls

29 lines (19 loc) · 565 Bytes
description title
Learn more about: List.RemoveItems
List.RemoveItems

List.RemoveItems

Syntax

List.RemoveItems(list1 as list, list2 as list) as list

About

Removes all occurrences of the given values in the list2 from list1. If the values in list2 don't exist in list1, the original list is returned.

Example 1

Remove the items in the list {2, 4, 6} from the list {1, 2, 3, 4, 2, 5, 5}.

Usage

List.RemoveItems({1, 2, 3, 4, 2, 5, 5}, {2, 4, 6})

Output

{1, 3, 5, 5}