September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -1,27 +1,32 @@
import extensions.
import system'routines.
import extensions'threading.
import extensions;
import system'routines;
import extensions'threading;
import system'threading;
extension $op
static sync = new object();
extension op
{
sleepSort
[
self forEach(:n)
[
threadControl start:
[
var a := 1000 * n.
sleepSort()
{
self.forEach:(n)
{
threadControl.start(()
{
threadControl.sleep(1000 * n);
threadControl sleep(1000 * n).
console printLine(n).
].
]
]
lock(sync)
{
console.printLine(n)
}
})
}
}
}
program =
[
'program'arguments skipping:1; selectBy(%"convertorOp.toInt"); toArray; sleepSort.
public program()
{
program_arguments.skipping:1.selectBy(mssgconst toInt<convertorOp>[0]).toArray().sleepSort();
console readChar.
].
console.readChar()
}