bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Unexpected result when attempting to enclose over rows


From: Elias Mårtenson
Subject: [Bug-apl] Unexpected result when attempting to enclose over rows
Date: Tue, 26 Apr 2016 18:38:57 +0800

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

[Prev in Thread] Current Thread [Next in Thread]