tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
10
Task/Repeat-a-string/Oz/repeat-a-string.oz
Normal file
10
Task/Repeat-a-string/Oz/repeat-a-string.oz
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
declare
|
||||
fun {Repeat Xs N}
|
||||
if N > 0 then
|
||||
{Append Xs {Repeat Xs N-1}}
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
in
|
||||
{System.showInfo {Repeat "Ha" 5}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue