Search found 9 matches

by ArrayMacNB
Mon Jul 12, 2021 2:21 pm
Forum: APL Chat
Topic: How to get a different color for a non existing variable ?
Replies: 6
Views: 9238

Re: How to get a different color for a non existing variable

This color would save the need to glance down at the 'CurObj:' line at the bottom, yes. Given it does not seem to be a big effort to glance down, I am not sure that the savings justify an interpreter change. YMMV (or VMPV?), of course.
by ArrayMacNB
Sun Mar 28, 2021 5:49 pm
Forum: APL Chat
Topic: Is there a better/nicer way?
Replies: 12
Views: 20873

Re: Is there a better/nicer way?

Quick and dirty, partly due to passing a noun as ⍺⍺:

rot←{⍺←3 ⋄ ⍺{t←⍵ ⋄ (⍺⍺↑⍺⌽t)←⌽⍺⍺↑⍺⌽t ⋄ t}∘⍵¨¯1+⍳(1-⍺)+≢⍵}

Having to use a temporary for the selective assignment does itch a bit, but it works.
by ArrayMacNB
Tue Mar 02, 2021 3:31 pm
Forum: APL Chat
Topic: proposal: ⎕here
Replies: 17
Views: 26369

Re: proposal: ⎕here

Have you tried ⎕SRC⎕THIS ? I tried this very early on, found it lacking, abandoned that path. As with many other things, it may have been fixed without fanfare later on, with a recently discovered case in point: double clicking on the beginning of a line in a function edit, selects the whole line. A ...
by ArrayMacNB
Thu Feb 25, 2021 3:03 pm
Forum: APL Chat
Topic: proposal: ⎕here
Replies: 17
Views: 26369

Re: proposal: ⎕here

> In my opinion, the agile solution would seem to be to implement this in APL according to > your own taste - you can write a 2-3 line utility function to do this quite easily. Thing is, this has been implemented long ago (As a single function (PUlines) in 2011, the raw concept (FNline nxtl upto ...
by ArrayMacNB
Tue Jan 05, 2021 2:45 pm
Forum: APL Chat
Topic: proposal: ⎕here
Replies: 17
Views: 26369

Re: proposal: ⎕here

> In my opinion, the agile solution would seem to be to implement this in APL according to > your own taste - you can write a 2-3 line utility function to do this quite easily. Given > that many people have already done this... I had a function for this pre 1990, for tradfns, which was all there ...
by ArrayMacNB
Wed Dec 30, 2020 3:49 pm
Forum: APL Chat
Topic: proposal: ⎕here
Replies: 17
Views: 26369

Re: proposal: ⎕here

> 'here' is opaque for new users. In the same vein, APL is opaque for new users. The solution, or so I have heard, is education. Discussion to the propriety of the name distracts. Discussion as to the format of the result (newline delimited v nested) distracts. The 'powers that be co-opted my ...
by ArrayMacNB
Thu Dec 17, 2020 2:55 pm
Forum: APL Chat
Topic: proposal: ⎕here
Replies: 17
Views: 26369

Re: proposal: ⎕here

The thing about all these 'array notation' proposals is that having ⎕here would make them all user exercises, similar to what

t←⎕json ⎕here ''

would do. Phil Last could do one thing, Dyalog could do another, and all could co-exist.

Sometimes it is easier to solve the bigger problem.
by ArrayMacNB
Tue Dec 15, 2020 9:42 pm
Forum: APL Chat
Topic: proposal: ⎕here
Replies: 17
Views: 26369

proposal: ⎕here

Being fed-up with the baroque way multi-line nouns have to be created, impatient with the promised enhancements, and frustrated with the ease this can be done in a tradfn, where scripts seemingly make this difficult, I would like to propose a system function be added to Dyalog APL: r←⎕here delim so t ...
by ArrayMacNB
Thu Sep 24, 2020 2:36 pm
Forum: APL Chat
Topic: ]box in the box
Replies: 1
Views: 4178

]box in the box

]box
Is ON
⎕←{⎕←⍵}(1 2)(3 4)
1 2 3 4
┌───┬───┐
│1 2│3 4│
└───┴───┘
⍝⍝ How to get identical behavior inside and outside a dfn?