tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1 @@
|
|||
palindrome(Word) :- name(Word,List), reverse(List,List).
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
pali(Str) :- sub_string(Str, 0, 1, _, X), string_concat(Str2, X, Str), string_concat(X, Mid, Str2), pali(Mid).
|
||||
pali(Str) :- string_length(Str, Len), Len < 2.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
pali(Str) :- sub_atom(Str, 0, 1, _, X), atom_concat(Str2, X, Str), atom_concat(X, Mid, Str2), pali(Mid).
|
||||
pali(Str) :- atom_length(Str, Len), Len < 2.
|
||||
Loading…
Add table
Add a link
Reference in a new issue