natnum(0).
natnum(s(N)) :-
natnum(N).At one point I was faced with the fact that I only really had 2 datatypes in my interpreter, the list and the integer. So I bit the bullet and made my integer type into a list with one byte entry, thus reducing my total amount of datatypes to one. Every piece of my interpreter code always knew that it would get a list as inputs, and it was kinda beautiful. CPU-wise it was wasteful, but it reduced the interpreter size by a lot.
They seem almost giddy about having designed a computer that can perform interesting mathematical tasks like integrals and derivatives without numbers.
Sure, there might be toy examples used for teaching that did this, but that is a something different.