Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
incr_numerical_string(S1, S2) :-
|
||||
string_to_atom(S1, A1),
|
||||
atom_number(A1, N1),
|
||||
N2 is N1+1,
|
||||
atom_number(A2, N2),
|
||||
string_to_atom(S2, A2).
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
?- incr_numerical_string("123", S2).
|
||||
S2 = "124".
|
||||
Loading…
Add table
Add a link
Reference in a new issue