RosettaCodeData/Task/Identity-matrix/Lang5/identity-matrix.lang5
2023-07-01 13:44:08 -04:00

8 lines
138 B
Text

: identity-matrix
dup iota 'A set
: i.(*) A in ;
[1] swap append reverse A swap reshape 'i. apply
;
5 identity-matrix .