mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 22:38:04 +02:00
3 lines
No EOL
129 B
Prolog
3 lines
No EOL
129 B
Prolog
lengthof(L, 0) :- L == [].
|
|
lengthof([_|R], NewLength) :- lengthof(R,Length),
|
|
NewLength is Length+1. |