List comprehensions: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: changed comments and whitespace, optimized the inner DO loop.) |
m (→{{header|Stata}}: avoid transposition) |
||
Line 2,220: | Line 2,220: | ||
<lang stata>function grid(n,p) { |
<lang stata>function grid(n,p) { |
||
return(colshape(J( |
return(colshape(J(1,p,1::n),1),J(n,1,1::p)) |
||
} |
} |
||