Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
The concept of using adverbs makes sense, and they are handy. I can't say as much for gerunds. I move around a lot growing up and I missed parts of speech and had double doses of many other things. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programm

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Ric Sherlock
When you say you "have no problem with /B" , do you mean that you don't have a conceptual problem with it , or that you don't get a syntax error when you execute it? On Oct 5, 2012 4:24 PM, "Linda Alvord" wrote: > I have no trouble with /B so I guess the problem is just writing adverbs. > > Lin

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
I have no trouble with /B so I guess the problem is just writing adverbs. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord Sent: Thursday, October 04, 2012 11:09 PM To: programm...@jsoftw

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
I've been avoiding adverbs, but maybe it's time to Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Ric Sherlock Sent: Thursday, October 04, 2012 10:49 PM To: programm...@jsoftware.com Subject: Re:

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Ric Sherlock
Raul has already shown how to use under but here is my original one using it too: rad=: (#~ [: -. 0 , 2 -:/\ ])&.|: :: ] However I like the ifany approach better in this case rad=: (#~ [: -. 0 , 2 -:/\ ])&.|: ifany rad B The reason that ( ifany B ) gives a syntax error is because ifany i

Re: [Jprogramming] another example of 'under'

2012-10-04 Thread Raul Miller
In the sentence: +/&.:% resistances the phrase +/&.:% is a verb which finds parallel resistance. -- Raul On Thu, Oct 4, 2012 at 9:19 PM, Keith Park wrote: > To parallel a number of resistors the expression * %+/% *does the job. > How could one make an equivalent verb? > > On Wed, Sep 26,

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
]B=:2 4 $3 5 5 4 2 1 1 6 3 5 5 4 2 1 1 6 f=:(] #"1~ 1 , [: -. 2 -:/\ |:) f B 3 5 4 2 1 6 f C=:'' |length error: f | f C=:'' g=:(] #"1~ 1 , [: -. 2 -:/\ |:) ^:(*@#@]) g B 3 5 4 2 1 6 g C Thanks Linda -Original Message- From: programming-boun...@forum

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
I'm hoping to eliminate the possibility. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller Sent: Thursday, October 04, 2012 8:19 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Wh

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
]B=:2 4 $3 5 5 4 2 1 1 6 3 5 5 4 2 1 1 6 rad=: 13 :'(A=:1,-. 2-:/\|:y)#"1 y' ifany=: ^:(*@#@]) ifany B |syntax error | ifany B rad ifany B 3 5 4 2 1 6 I've never noticed a function that doesn't work, used in a sentence to produce a good result! Linda -Orig

Re: [Jprogramming] another example of 'under'

2012-10-04 Thread Keith Park
To parallel a number of resistors the expression * %+/% *does the job. How could one make an equivalent verb? On Wed, Sep 26, 2012 at 12:38 PM, Boyko Bantchev wrote: > On 26 September 2012 15:39, Henry Rich wrote: > > +&.% is the operation for combining parallel electrical resistances, > anot

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Raul Miller
Perhaps: rad=: (#~ 1 - ] -:"1 |.!.__~&1)&.|: Note that I have assumed that you will not be using negative infinity in B. -- Raul On Thu, Oct 4, 2012 at 8:12 PM, Linda Alvord wrote: > I think I only need "ifany" . But I could call it "ifempty" . > > ifany=: ^:(*@#@]) >rad=: 13 :'(1

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
I think I only need "ifany" . But I could call it "ifempty" . ifany=: ^:(*@#@]) rad=: 13 :'(1,-. 2-:/\|:y)#"1 y' ]B=:2 4 $3 5 5 4 2 1 1 6 3 5 5 4 2 1 1 6 rad ifany B 3 5 4 2 1 6 rad ifany C=:'' Linda -Original Message- From: programming-boun...@forums.jsoftware.com

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
]B=:2 4 $3 5 5 4 2 1 1 6 3 5 5 4 2 1 1 6 rad=: (#~ |: [: -. 0 , 2 -:/\ ])@|: :: ] rad B 3 2 5 1 4 6 Ric, Is there a way to modify your function so the result of rad B will be: 3 5 4 2 1 6 Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programm

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Henry Rich
I use ifany=: ^:(*@#@]) butifnull =: 2 : 'v"_`u@.(*@#@])' rad ifany C rad butifnull (2 0$0) C Henry Rich On 10/4/2012 7:22 PM, Linda Alvord wrote: I just realized that all these choices, change B in some way. I want it to always be a two row table of pairs in columns. B=:2

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
I just realized that all these choices, change B in some way. I want it to always be a two row table of pairs in columns. B=:2 4 $3 5 5 4 2 1 1 6 3 5 5 4 2 1 1 6 ''$ B 3 5 5 4 {. B 3 5 5 4 0 { B 3 5 5 4 ,/ B 3 5 5 4 2 1 1 6 My only concern is when B happens to have no pairs, i

Re: [Jprogramming] readonly lacks color

2012-10-04 Thread Linda Alvord
In jijx under link and then jfile, select any file. Select any file. There are three choices: link action option . In j7,chrome, vista, there are two choices under option. One is readonly and the other is numbers. The first is a toggle. In the past the entire screen was a pale blue

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
This caught me a couple months ago, and then I forgot it. Maybe next time I'll catch it myself!. Thanks to all for your help. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Devon McCormick Sent: Th

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Raul Miller
Here are some options (I'm repeating concepts expressed by Roger Hui and Devon McCormick: L=: 1,'' ''$ L {. L 0 { L ,/ L Roger's suggestion is equivalent to the APL classic in this context, but in the general case you would need to ravel the right argument if L had a rank greater t

Re: [Jprogramming] readonly lacks color

2012-10-04 Thread Raul Miller
It's not clear to me how the code here is organized -- the only content I see being delivered which addresses "readonly" has to do with file names. Looking at plausible css selectors for either a background-color or a reference point for manipulating either an inline style or a class which carries

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Devon McCormick
Monadic "take" - " {. " - is also nice and simple: ${.1,'' On Thu, Oct 4, 2012 at 9:37 AM, Roger Hui wrote: > ''$1,'' > same as in APL, with the $ replacing the ⍴ (rho). > > > > On Thu, Oct 4, 2012 at 6:35 AM, Linda Alvord wrote: > >> This is the crux of the problem: >> >>1,'' >> 1 >>

Re: [Jprogramming] readonly lacks color

2012-10-04 Thread Eric Iverson
Not sure how to do that either (red numbers). These things will be considered for the next update. On Thu, Oct 4, 2012 at 9:38 AM, Linda Alvord wrote: > What if the list of numbers is red when the file is readonly? > > Linda > > -Original Message- > From: programming-boun...@forums.jsoftw

Re: [Jprogramming] readonly lacks color

2012-10-04 Thread Linda Alvord
What if the list of numbers is red when the file is readonly? Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Eric Iverson Sent: Thursday, October 04, 2012 8:54 AM To: programm...@jsoftware.com Subject:

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Roger Hui
''$1,'' same as in APL, with the $ replacing the ⍴ (rho). On Thu, Oct 4, 2012 at 6:35 AM, Linda Alvord wrote: > This is the crux of the problem: > >1,'' > 1 >$1 >$1,'' > 1 > > What is the simplest way to make the shape of 1,'' be empty? > > Linda > > -

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Linda Alvord
This is the crux of the problem: 1,'' 1 $1 $1,'' 1 What is the simplest way to make the shape of 1,'' be empty? Linda -Original Messapege- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Ric Sherlock Sent:

Re: [Jprogramming] readonly lacks color

2012-10-04 Thread Eric Iverson
I couldn't figure out how to change the codemirrir background color to indicate readonly. I'm sure it can be done and someday this change will be made. In the meantime readonly state is indicated by the word readonly to the left of the file name just above the edit area. Not as good as a different

Re: [Jprogramming] Why the length error?

2012-10-04 Thread Ken Chakahwata
Hi Linda, I think the explanation is in the fact that: (,1)#"1 '' |length error But 1#"1 '' works OK. i suspect empty is not an appropriate right arg for the verb, but if you insist, then perhaps you may need to special case it. enjoy ken -Original Message- From: programming-boun