Created
December 23, 2018 05:34
-
-
Save DonaldKellett/4214f0c398ca8758c53c3306eb30970d to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 6 - Exercise 6.3 - Remove first and last element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
toptail([_ | T], OutList) :- append(OutList, [_], T). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment