|
From: | Dr . Jürgen Sauermann |
Subject: | Re: Output variants for pick and index operators |
Date: | Wed, 15 Mar 2023 14:43:52 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Hi Jürgen,Same in APL2. Note that putting X and (8⎕CR ... on
looks like I have plenty of time,
however, it's being usefully invested:-)
(SVN 1660)
This displays as expected.
X (8⎕CR X ←1 2 3 ⊃¨⊂'A' 'CD' 'EF')
A CD EF ┌→──────────┐
│A ┌→─┐ ┌→─┐│
│ │CD│ │EF││
│ └──┘ └──┘│
└ϵ──────────┘
A..CD OK, CD...EF one space more.Same in APL2.
X (8⎕CR X ←1 2 3 ⌷¨⊂'A' 'CD' 'EF')
A CD EF ┌→──────────────┐
│A ┌────┐ ┌────┐│
│ │┌→─┐│ │┌→─┐││
│ ││CD││ ││EF│││
│ │└──┘│ │└──┘││
│ └ϵ───┘ └ϵ───┘│
└ϵϵ─────────────┘
Same in APL2.
In Ref to "V" from previous conversations ...
Display for "⊃" and "⌷" differ, the bare outputs are identical.
X (8⎕CR X ←1 2 3 ⊃¨⊂V)
A 1 2 3 4 5 0 0 0 ┌→────────────────────┐
0 0 0 │A ┌→────────┐ ┌→────┐│
0 0 0 │ │1 2 3 4 5│ ↓0 0 0││
│ └─────────┘ │0 0 0││
│ │0 0 0││
│ └─────┘│
└ϵ────────────────────┘
Same layout as beforeSame in APL2.
X (8⎕CR X ←1 2 3 ⌷¨⊂V)
A 1 2 3 4 5 0 0 0 ┌→────────────────────────┐
0 0 0 │A ┌───────────┐ ┌───────┐│
0 0 0 │ │┌→────────┐│ │┌→────┐││
│ ││1 2 3 4 5││ │↓0 0 0│││
│ │└─────────┘│ ││0 0 0│││
│ └ϵ──────────┘ ││0 0 0│││
│ │└─────┘││
│ └ϵ──────┘│
└ϵϵ───────────────────────┘
As a side note.I get 1 leading and trailing space:
The output has trailing space(s) included
3 spaces EF...1 OK? Should be 2 spaces?
X ←1 2 3 ⊃¨⊂'A' 'CD' 'EF'
X 1
A CD EF 1
4 spaces EF....1 OK? Should be 2 spaces?I get2 trailing spaces:
X ←1 2 3 ⌷¨⊂'A' 'CD' 'EF'
X 1
A CD EF 1
Best Regards
Hans-Peter
[Prev in Thread] | Current Thread | [Next in Thread] |