Skip to content

Instantly share code, notes, and snippets.

@DonaldKellett
Created December 22, 2018 10:16
Show Gist options
  • Save DonaldKellett/95b34998ce5d383a1c0bb60e2670214b to your computer and use it in GitHub Desktop.
Save DonaldKellett/95b34998ce5d383a1c0bb60e2670214b to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 4 - Practical Session - Programming Exercise 2 - Combine two lists II
combine2([], [], []).
combine2([X | L1], [Y | L2], [[X, Y] | Result]) :- combine2(L1, L2, Result).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment