Notifications
Clear all

[Closed] substracting arrays?

i guess this is an easy question but i am stuck on this

lets say you have two arrays like
array1 = #(1,2,3,4,5,6)
array2 = #(2,3,4)

how can i substract array2 from array1 to get this
newarray = #(1,5,6)

greetings proteus

2 Replies
1 Reply
(@ofer_z)
Joined: 11 months ago

Posts: 0

if you need the subtractoin only for simple arrays of numbers you can use this:


 ( (array1 as bitArray) - (array2 as bitArray) ) as array
 

hOpe this helps,
o

thanks for the fast reply
incredible fast
thanks will check it out