Array Difference

Find elements in the first array that are not present in the second array.

Code

General
b = set(arr2)
[x for x in arr1 if x not in b]

Parameters

First array

Second array

Server

More Python Snippets