Skip to content

Instantly share code, notes, and snippets.

@DonaldKellett
Created December 22, 2018 09:35
Show Gist options
  • Save DonaldKellett/2993626f1da82b74e0a1d719303adc0a to your computer and use it in GitHub Desktop.
Save DonaldKellett/2993626f1da82b74e0a1d719303adc0a to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 4 - Exercise 4.3 - Second element of a list
second(X, [_, X | _]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment