Generating arrays with Constant ()

A constant function derived with Constant can be used to make constant arrays matching another array's shape, or part of it.

ArrayShape
e⍨¨
e¯2 2↑⍴
e3 ¯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.