Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Identity-matrix/Tailspin/identity-matrix.tailspin
Normal file
8
Task/Identity-matrix/Tailspin/identity-matrix.tailspin
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
templates identityMatrix
|
||||
def n: $;
|
||||
[1..$n -> [1..~$ -> 0, 1, $~..$n -> 0]] !
|
||||
end identityMatrix
|
||||
|
||||
def identity: 5 -> identityMatrix;
|
||||
$identity... -> '|$(1);$(2..last)... -> ', $;';|
|
||||
' -> !OUT::write
|
||||
Loading…
Add table
Add a link
Reference in a new issue