RosettaCodeData/Task/Identity-matrix/Lang5/identity-matrix.lang5

9 lines
138 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
: identity-matrix
dup iota 'A set
: i.(*) A in ;
[1] swap append reverse A swap reshape 'i. apply
;
5 identity-matrix .