<h3 class='likesectionHead' id='the-weekly-challenge-prolog-solutions'><a id='x1-1000'></a>The Weekly Challenge 310 (Prolog Solutions)</h3>

The examples used here are from the weekly challenge problem statement and demonstrate the working solution. Part 1: Arrays Intersection You are given a list of array of integers. Write a script to return the common elements in all the arrays. Let’s define a predicate that can be called via maplist. This will just wrap member and be used to return a list of common elements. We’ll also remove…