Re: Reassignment of a nested array element

2023-03-13 Thread Hans-Peter Sorge
Hi Jürgen, indeed you are ahead of me. SVN 1658 works like a charm. Thank you for all the effort. Best Regards Hans-Peter Am 13.03.23 um 11:32 schrieb Dr. Jürgen Sauermann: Hi Hans-Peter, in contrast, I am getting this (*SVN 165**8*): *   V←'A' (1 2 3 4 5) (3 3⍴1)   V  A  1 2 3 4 5

Re: Reassignment of a nested array element

2023-03-13 Thread Dr . Jürgen Sauermann
Hi Hans-Peter, in contrast, I am getting this (SVN 1658):   V←'A' (1 2 3 4 5) (3 3⍴1)   V  A  1 2 3 4 5   1 1 1     1 1 1     1 1 1   (1/3⊃V) ≡ 3⊃V 1

Re: Reassignment of a nested array element

2023-03-12 Thread Hans-Peter Sorge
Hi Jürgen, back from wintry Hahnenklee/Harz here are my thoughts. In ref.:  "like a variable or like part of variable" I always look at the intermediate data content which I consider to be identical from "variable point of view" and "part of variable point of view". In following example that

Re: Reassignment of a nested array element

2023-03-10 Thread Dr . Jürgen Sauermann
Gentlemen, thanks for your patience. I believe that I have now found a solution that may please both of you. Attached is my testcase file, please have a look. I still believe that left values using A⊃V or A/B are ambiguous as to whether t

Re: Reassignment of a nested array element

2023-03-09 Thread Hans-Peter Sorge
Hi Jürgen, thank you for considering it. Your work is admirable. Best Regards Hans-Peter Am 09.03.23 um 17:49 schrieb Dr. Jürgen Sauermann: Hi Hans-Peter, you are probably right. This one looks rather tricky, therefore I may need some time. But I am working on it. Best Regards, Jürgen On

Re: Reassignment of a nested array element

2023-03-09 Thread Dr . Jürgen Sauermann
Hi Hans-Peter, you are probably right. This one looks rather tricky, therefore I may need some time. But I am working on it. Best Regards, Jürgen On 3/8/23 9:05 PM, Hans-Peter Sorge wrote: Hello Jür

Re: Reassignment of a nested array element

2023-03-08 Thread Hans-Peter Sorge
Hello Jürgen, sorry that I'm so insistent in APL2 Programming:Language Reference it is stated: Selective Specification:Compress can be used for selective specification: M←32ρι6 M 12 34 56 (10/M)←'ABC' M A2 B4 C6 Using our example V V←1 'bc' M  V 1 bc   1 2    3 4    5 6 The se

Re: Reassignment of a nested array element

2023-03-08 Thread Dr . Jürgen Sauermann
Hi, I fixed a discrepancy between (3⊃V)← and  (1/3⊃V)←. SVN 1657. We know have:   V←1 'bc' (3 3⍴⍳9) ◊ 8 ⎕CR V ┌→─┐ │1 ┌→─┐ ┌→┐│ │  │bc│ ↓1 2 3││ │  └──┘ │4 5 6││ │   │7 8 9││

Re: Reassignment of a nested array element

2023-03-07 Thread Hans-Peter Sorge
Hello Jürgen, Elias The difference I mention is in (1/3⊃V)←1 vs (3⊃V)←1 The second expression is the one discussed in the Mail. And I agree with your statement Jürgen that, even if not specified, your solution is correct. 3⊃V is the third elemnt in V and that is being set to 1. The first expr

Re: Reassignment of a nested array element

2023-03-07 Thread Elias Mårtenson
I think this is because monadic ⊃ is first in Dyalog, as opposed to disclose in GNU, APL2 (and, incidentally, KAP 😀). Use monadic ↑ instead to get the effect you want. Den ons 8 mars 2023 00:34Dr. Jürgen Sauermann skrev: > Hi Hans-Peter, > > I believe that GNU APL, Dyalog, and IBM APL2 only now

Re: Reassignment of a nested array element

2023-03-07 Thread Dr . Jürgen Sauermann
Hi Hans-Peter, I believe that GNU APL, Dyalog, and IBM APL2 only now behave the same while GNU APL did not before the fix: TryAPL Version 3.6.1 (enter ]State for details) Tue Mar 07 2023 16:59:04 Copyright (c) Dyalog Limited 1982-

Re: Reassignment of a nested array element

2023-03-06 Thread Hans-Peter Sorge
Hello Jürgen, I agree with your case 1/2  Statement. The examples I was showing is actually "off by 1".  I was referring to (1/3⊃V)←1 having a←1  b←'ABC'  c←3 3⍴⍳9  V←a b c  (3⊃V) 1 2 3 4 5 6 7 8 9 As expected with case 1: (3⊃V)←1  V 1 ABC 1  V←a b c Not expe

Re: Reassignment of a nested array element

2023-03-06 Thread Dr . Jürgen Sauermann
Gentlemen, thanks for the discussion, fixed in SVN 1655. Hans-Peter, I am sorry that this change creates an incompatibility in your code. My thinking for the old solution was this:    V←0 0 0  ◊   V←1 ◊ V   ∩ case 1. 1

Re: Reassignment of a nested array element

2023-03-05 Thread Hans-Peter Sorge
Hi, Yes, spontaneously it looked like selective assignment Like CM← ⊃'Sue' 'Maria' 'Annalisa'  CM Sue Maria Annalisa  (1/CM)← ⊂'x'  CM x x x x x x x x x x x x x x x x x x x x x x x x

Re: Reassignment of a nested array element

2023-03-05 Thread Mr. Sunday
Thank you for your reply, Hans-Peter. Sorry for the delay; it took some time to dig out my old interpreters. APL2, APL+Win, and Dyalog come up with the answer I expect. I do not see why reassignment would retain the structure of the prior contents. Is your point of view based upon selective

Re: Reassignment of a nested array element

2023-03-04 Thread Hans-Peter Sorge
Hi, Works as expected ⊃'Sue' 'Maria' 'Annalisa' is an array 3 by 8. ⊂⊃'Susan' 'Mary' 'Annalisa' is an element (⊂) of a 3 by 8  array (⊃'Susan' 'Mary' 'Annalisa' ). Finally each element in  ⊃'Sue' 'Maria' 'Annalisa' gets assigned an array of  ⊃'Susan' 'Mary' 'Annalisa' Greetings Hans-Peter

Reassignment of a nested array element

2023-03-04 Thread Mr. Sunday
Hi, I have an issue with reassigning an element of a nested array. Here is an example. 14535:15a:~% apl --version BUILDTAG: - Project:GNU APL Version / SVN: 1.8 / SVN: 1651M Build Date: 2023-03-02 00:25:07 UTC Build OS: Darwin 21.6.0 x86_64 config.