I am trying to find the largest word out of several thousand instances of word(apple). word(bob). .. and so on. I am a noobie at this, but here is my current (not working) attempt:
maxlength(Start):-
word(X),
equal(Counter, Start),
string_atom(Y, X),
string_length(Y, Length)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.