Created
December 23, 2018 05:24
-
-
Save DonaldKellett/b977f81ac886aab3fe1743efbbfe175f to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 6 - Exercise 6.2 - Is Palindrome?
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
palindrome(Result) :- | |
append(L0, L1, Result), reverse(L0, L1); | |
append(L0, [_ | L1], Result), reverse(L0, L1). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment