Created
December 22, 2018 10:02
-
-
Save DonaldKellett/591b9c4a814812831b52c6d3c6cc54ce to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 4 - Exercise 4.6 - Repeat Twice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twice([], []). | |
twice([X | L1], [X, X | L2]) :- twice(L1, L2). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment