how to remove elements from an array that are stored in another array
Posted: 21 Dec 2022, 21:40
I want to delete elements of a first array that are in a second array, leaving only the elements that are not in the second array, for example
Before
Array_1 := ["Juan", "Leo", "Maria", "Jose", "Luis", "Pedro"]
Array_2 := ["Juan", "Maria", "Luis"]
After
Array_1 := ["Leo", "Jose", "Pedro"]
thanks for you help.
Before
Array_1 := ["Juan", "Leo", "Maria", "Jose", "Luis", "Pedro"]
Array_2 := ["Juan", "Maria", "Luis"]
After
Array_1 := ["Leo", "Jose", "Pedro"]
thanks for you help.