I have executed the intersection of two arrays using intersection in prolog. How can I execute this manually without using \'intersection\'?
intersection([],[