⍨)A constant function derived with Constant can be used to make constant arrays matching another array's shape, or part of it.
| Array | Shape |
|---|---|
e⍨¨⍵ |
⍴⍵ |
e⍨⍤¯2⊢⍵ |
2↑⍴⍵ |
e⍨⍤3⊢⍵ |
¯3↓⍴⍵ |
e⍨⌿⍵ |
1↓⍴⍵ |
⍺∘.(e⍨)⍵ |
⍺,⍥⍴⍵ |
These forms will be optimised in 18.0 so that generating large arrays with Constant is as fast as using reshape.