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 @@
|
|||
for(Lo,Hi,Step,Lo) :- Step>0, Lo=<Hi.
|
||||
for(Lo,Hi,Step,Val) :- Step>0, plus(Lo,Step,V), V=<Hi, !, for(V,Hi,Step,Val).
|
||||
|
||||
example :-
|
||||
for(0,10,2,Val), write(Val), write(' '), fail.
|
||||
example.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
for(Hi,Lo,Step,Hi) :- Step<0, Lo=<Hi.
|
||||
for(Hi,Lo,Step,Val) :- Step<0, plus(Hi,Step,V), Lo=<V, !, for(V,Lo,Step,Val).
|
||||
Loading…
Add table
Add a link
Reference in a new issue