Anonymous user
Talk:Palindrome detection: Difference between revisions
m
→Prolog: cut spurious text from a previous writing, when it did not work because of me
(→Prolog) |
m (→Prolog: cut spurious text from a previous writing, when it did not work because of me) |
||
Line 54:
The functions you used for strings are in SWI Prolog, but not in GNU Prolog, so I can't test it, but the "logic" seems logical to me:D --[[User:ShinTakezou|ShinTakezou]] 21:26, 10 February 2009 (UTC)
Reading here and there I've realized that what we call String in Prolog could be simply called atom, and it exists atom_length/2 and atom_concat/3
The code compiles (with gplc, the GNU prolog compiler), but when I try pali('atom'), it says
|