Write a LISP function, “listOfNeighbors”, which is given two arguments, the first argument is an atom A and the second a
Posted: Sun Jul 03, 2022 9:59 am
Write a LISP function, “listOfNeighbors”, which is given twoarguments, the first argument is an atom A and the second argumentL is a list of sub-lists. The function should find the firstsub-list in L whose first element is equal to A and return the tailof that list. For example: ➢ (listOfNeighbors ‘c ‘( (a b c d) (b de) (c e f) (d e f) ) ) Returns: (e f)