Is there a simple idiom in (Dyalog) APL to surround a numeric array with zeros?
Currently for a numerical array NA
of rank 1, or a vector I use
0,⍨0, NA
and for an array of rank 2 I use
0,[1]⍨0,[1]0,⍨0, NA
For higher ranks I could just repeat the pattern, but I'm sure there has to be a better way to do this (and with one definition for all ranks), but I just can't come up with one that doesn't seem overly complicated.