Skip to content

Instantly share code, notes, and snippets.

@DonaldKellett
Created December 23, 2018 14:00
Show Gist options
  • Save DonaldKellett/a166dbf9fa119289ada125c3b05f6792 to your computer and use it in GitHub Desktop.
Save DonaldKellett/a166dbf9fa119289ada125c3b05f6792 to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 6 - Practical Session - Programming Exercise 1 - member/2 using append/3
member(X, List) :- append(_, [X | _], List).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment