Define the Prolog procedure
return_last_3(List,NewList)
that returns the last 3 items of list giving NewList. Let bothlists be represented as difference lists (difference pairs).
Expert Answer
An answer will be send to you shortly. . . . .
Define the Prolog procedure
return_last_3(List,NewList)
that returns the last 3 items of list giving NewList. Let bothlists be represented as difference lists (difference pairs).
An answer will be send to you shortly. . . . .