Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Loops-N-plus-one-half/Oz/loops-n-plus-one-half-1.oz
Normal file
5
Task/Loops-N-plus-one-half/Oz/loops-n-plus-one-half-1.oz
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
for N in {List.number 1 10 1} break:Break do
|
||||
{System.printInfo N}
|
||||
if N == 10 then {Break} end
|
||||
{System.printInfo ", "}
|
||||
end
|
||||
11
Task/Loops-N-plus-one-half/Oz/loops-n-plus-one-half-2.oz
Normal file
11
Task/Loops-N-plus-one-half/Oz/loops-n-plus-one-half-2.oz
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
declare
|
||||
fun {CommaSep Xs}
|
||||
case Xs of nil then nil
|
||||
[] X|Xr then
|
||||
{FoldL Xr
|
||||
fun {$ Z X} Z#", "#X end
|
||||
X}
|
||||
end
|
||||
end
|
||||
in
|
||||
{System.showInfo {CommaSep {List.number 1 10 1}}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue