mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Misc; E-Mail von Moritz
This commit is contained in:
parent
9c0864f122
commit
0508de3f6a
14 changed files with 122 additions and 16 deletions
|
@ -0,0 +1,5 @@
|
|||
rev([], []).
|
||||
rev([X|Xs], Ys) :- rev(Xs, Zs), append(Zs, [X], Ys).
|
||||
|
||||
?- rev([1,2,3,4,5], L).
|
||||
L = [5, 4, 3, 2, 1].
|
Loading…
Add table
Add a link
Reference in a new issue