September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,25 +1,22 @@
|
|||
#define system.
|
||||
#define system'routines.
|
||||
#define extensions.
|
||||
#define extensions'routines.
|
||||
import system'routines.
|
||||
import extensions.
|
||||
import extensions'routines.
|
||||
|
||||
#symbol(const)M = 3.
|
||||
#symbol(const)N = 5.
|
||||
const int M = 3.
|
||||
const int N = 5.
|
||||
|
||||
// --- Numbers ---
|
||||
|
||||
#symbol numbers = (:anN)
|
||||
numbers = (:anN)
|
||||
[
|
||||
Array new &length:(anN int) set &every: (&index:n) [ Integer new &int:n ]
|
||||
^ Array new length:anN; populate(:n)( n )
|
||||
].
|
||||
|
||||
// --- Program ---
|
||||
|
||||
#symbol program =
|
||||
program =
|
||||
[
|
||||
#var aNumbers := numbers eval:N.
|
||||
Combinator new:M &of:aNumbers run &each: aRow
|
||||
var aNumbers := numbers eval:N.
|
||||
Combinator new:M of:aNumbers; forEach(:aRow)
|
||||
[
|
||||
console writeLine:aRow.
|
||||
console printLine:aRow
|
||||
].
|
||||
|
||||
console readChar.
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue