in reply to Check if one array is a subset of another

Can you clarify? Assume the big array is
a X b c Y d Y e
, the small one is
X Y
. What should be the result of the deletion,
a b c d Y e
or
a b c Y d e
?

Replies are listed 'Best First'.
Re^2: Check if one array is a subset of another
by cstrong (Beadle) on Jan 04, 2012 at 17:16 UTC
    If the big array is a X b c Y d Y e

    and the small array is

     c Y

    then the resulting array would be

    a X b d Y e

    Thanks