How to EDIT a nested array

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

How to EDIT a nested array

Postby woody on Sun May 28, 2017 4:45 pm

Greetings,

Is there an easy way to EDIT a 2D nested array?

      m←4 4⍴ ⍕¨100×⍳16
m
100 200 300 400
500 600 700 800
900 1000 1100 1200
1300 1400 1500 1600

]disp m
┌→───┬────┬────┬────┐
↓100 │200 │300 │400 │
├───→┼───→┼───→┼───→┤
│500 │600 │700 │800 │
├───→┼───→┼───→┼───→┤
│900 │1000│1100│1200│
├───→┼───→┼───→┼───→┤
│1300│1400│1500│1600│
└───→┴───→┴───→┴───→┘



⍝ How do I EDIT m in Windows with DyalogAPL v15 ?
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: How to EDIT a nested array

Postby Adam|Dyalog on Sun May 28, 2017 10:26 pm

On Windows, using the Unicode edition, position the cursor on or to the right of the variable name, then click the Edit button (fifth button on the Object toolbar):
Image
User avatar
Adam|Dyalog
 
Posts: 135
Joined: Thu Jun 25, 2015 1:13 pm

Re: How to EDIT a nested array

Postby woody on Wed Jun 07, 2017 10:13 am

Perfect!

Thanks
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: How to EDIT a nested array

Postby ArrayMac227 on Sat Jun 17, 2017 2:59 pm

A good shot across the bow of the ultimately intractable problem that is nested array editing. I look forward to a system command, or a system function:

new←⎕edObj old

although I suppose some ⎕se hacking might reveal the mechanics.
ArrayMac227
 
Posts: 62
Joined: Sat Sep 12, 2015 1:40 pm

Re: How to EDIT a nested array

Postby Adam|Dyalog on Sun Jul 02, 2017 1:31 am

ArrayMac227 wrote:I look forward to a system command, or a system function:


Have you tried this?

      new←old
]array.edit new
User avatar
Adam|Dyalog
 
Posts: 135
Joined: Thu Jun 25, 2015 1:13 pm

Re: How to EDIT a nested array

Postby ArrayMac227 on Sun Sep 03, 2017 2:26 pm

> ]array.edit new

(just wandered on here and saw Adam's reply. email notifications of replies available?)
Lovely
ArrayMac227
 
Posts: 62
Joined: Sat Sep 12, 2015 1:40 pm

Re: How to EDIT a nested array

Postby Michael|Dyalog on Wed Sep 06, 2017 7:15 am

ArrayMac227 wrote:> email notifications of replies available?


Here: User Control Panel > Board preferences > Edit posting defaults > "Notify me upon replies by default:"
Michael|Dyalog
 
Posts: 23
Joined: Thu Mar 02, 2017 4:29 pm


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest