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