How to EDIT a nested array
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 !
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 !
7 posts
• Page 1 of 1
How to EDIT a nested array
Greetings,
Is there an easy way to EDIT a 2D nested array?
⍝ How do I EDIT m in Windows with DyalogAPL v15 ?
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 ?
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
Re: How to EDIT a nested array
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):
-
Adam|Dyalog - Posts: 137
- Joined: Thu Jun 25, 2015 1:13 pm
Re: How to EDIT a nested array
Perfect!
Thanks
Thanks
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
Re: How to EDIT a nested array
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.
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
ArrayMac227 wrote:I look forward to a system command, or a system function:
Have you tried this?
new←old
]array.edit new
-
Adam|Dyalog - Posts: 137
- Joined: Thu Jun 25, 2015 1:13 pm
Re: How to EDIT a nested array
> ]array.edit new
(just wandered on here and saw Adam's reply. email notifications of replies available?)
Lovely
(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
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
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group