7 lines
182 B
Text
7 lines
182 B
Text
fcn idMatrix(n){
|
|
m:=(0).pump(n,List.createLong(n).write,0)*n;
|
|
m.apply2(fcn(row,rc){ row[rc.inc()]=1 },Ref(0));
|
|
m
|
|
}
|
|
idMatrix(5).println();
|
|
idMatrix(5).pump(Console.println);
|