Skip to content

Instantly share code, notes, and snippets.

@DonaldKellett
Created December 23, 2018 05:08
Show Gist options
  • Save DonaldKellett/e322b50215c768a4ca045542c2588858 to your computer and use it in GitHub Desktop.
Save DonaldKellett/e322b50215c768a4ca045542c2588858 to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 6 - Exercise 6.1 - Doubled List
doubled(List) :- append(L, L, List).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment