Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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