Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Repeat/Prolog/repeat.pro
Normal file
8
Task/Repeat/Prolog/repeat.pro
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
repeat(_, 0).
|
||||
repeat(Callable, Times) :-
|
||||
succ(TimesLess1, Times),
|
||||
Callable,
|
||||
repeat(Callable, TimesLess1).
|
||||
|
||||
test :- write('Hello, World'), nl.
|
||||
test(Name) :- format('Hello, ~w~n', Name).
|
||||
Loading…
Add table
Add a link
Reference in a new issue