Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
23
Task/Integer-sequence/Limbo/integer-sequence.limbo
Normal file
23
Task/Integer-sequence/Limbo/integer-sequence.limbo
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
implement CountToInfinity;
|
||||
|
||||
include "sys.m"; sys: Sys;
|
||||
include "draw.m";
|
||||
include "ipints.m"; ipints: IPints;
|
||||
IPint: import ipints;
|
||||
|
||||
CountToInfinity: module {
|
||||
init: fn(nil: ref Draw->Context, nil: list of string);
|
||||
};
|
||||
|
||||
init(nil: ref Draw->Context, nil: list of string)
|
||||
{
|
||||
sys = load Sys Sys->PATH;
|
||||
ipints = load IPints IPints->PATH;
|
||||
|
||||
i := IPint.inttoip(0);
|
||||
one := IPint.inttoip(1);
|
||||
for(;;) {
|
||||
sys->print("%s\n", i.iptostr(10));
|
||||
i = i.add(one);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue