Given the following definition:

*      z←⍳4*

I was trying to generate the following:

┏→━━━━━━━━━━━━━━━━━━━━━━┓
┃┏→━━┓ ┏→━━┓ ┏→━━┓ ┏→━━┓┃
┃┃1 1┃ ┃2 2┃ ┃3 3┃ ┃4 4┃┃
┃┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛┃
┗∊━━━━━━━━━━━━━━━━━━━━━━┛

I attempted to do the following:

*      (⊂⍤1) z,⍪z*

I expected this to work, because *z,⍪z* is:

┏→━━┓
↓1 1┃
┃2 2┃
┃3 3┃
┃4 4┃
┗━━━┛

Then, *(⊂⍤1)* should run enclose on each row.

But, instead of getting the expected result, the application of enclose
over the rows returns the original result:

*      (⊂⍤1) z,⍪z*
┏→━━┓
↓1 1┃
┃2 2┃
┃3 3┃
┃4 4┃
┗━━━┛

Any ideas why?

Regards,
Elias

Reply via email to