Skip to content

Instantly share code, notes, and snippets.

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