There is at least one other degenerate case, namely the "legacy"
singleton, or one element vector. With a scalar argument, monadic
iota returns a result depth one. With a vector argument, iota returns
a result depth two. Except when there is only one element.
≡⍳⍳0 ⍝ can't find zilde
2
Not easily. That said, I'm not sure I agree that the should give a DOMAIN
ERROR:
* ∘.+/ ⍬*
DOMAIN ERROR
∘.+/⍬
^ ^
Regards,
Elias
On 2 March 2016 at 17:38, Jay Foad wrote:
> Cool! For bonus marks can you make it work in the degenerate case:
>
> ⍳⍬ ←→ ⊂⍬
>
> ?
>
> Jay.
>
> O
Cool! For bonus marks can you make it work in the degenerate case:
⍳⍬ ←→ ⊂⍬
?
Jay.
On 2 March 2016 at 02:23, Elias Mårtenson wrote:
> Looking at it further, I realise you need do disclose the result in order to
> make them equivalent:
>
> IOTA ← {⊃∘.,/⍳¨⍵}
>
> Regards,
> Elias
>
> On 2