File size: 176 Bytes
557a17a
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
string(String) --> list(String).

list([]) --> [].
list([L|Ls]) --> [L], list(Ls).

word1([])-->[].
word1([A|As]) --> [A],word1(As),{%%atom_codes(A,AC),
char_type(A,alpha)},!.