Given two lists determine whether :
Specifically, a list A is a sublist of list B if by dropping 0 or more elements from the front of B and 0 or more elements from the back of B you get a list that's completely equal to A.
Determine the relation between list1 and list2 and return the relation as a Clojure keyword.
The function classify
should either return :sublist
, :superlist
, :equal
or:unequal
.
Sign up to Exercism to learn and master Clojure with 12 concepts, 88 exercises, and real human mentoring, all for free.