Re: [Jprogramming] Self-reference in an explicit definition

2012-09-04 Thread Ian Clark
; > has the desired effect. > > -Dan > > > -Original Message- > From: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Ian Clark > Sent: Tuesday, September 04, 2012 10:01 AM > To: programm...@jsoftware.com

Re: [Jprogramming] Self-reference in an explicit definition

2012-09-04 Thread Dan Bron
Ian Clark Sent: Tuesday, September 04, 2012 10:01 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Self-reference in an explicit definition Thanks. All is now clear. The J Dictionary says: "$: denotes the longest verb that contains it." http://www.jsoftware.com/help/dictio

Re: [Jprogramming] Self-reference in an explicit definition

2012-09-04 Thread Ian Clark
Thanks. All is now clear. The J Dictionary says: "$: denotes the longest verb that contains it." http://www.jsoftware.com/help/dictionary/d212.htm The essential piece of information I was missing (overlooking?) was: "...in the current sentence". On Tue, Sep 4, 2012 at 2:19 PM, Raul Miller wrote

Re: [Jprogramming] Self-reference in an explicit definition

2012-09-04 Thread Raul Miller
$: refers to the largest containing verb in the current sentence. Explicit definitions contain sentences. -- Raul On Tuesday, September 4, 2012, Ian Clark wrote: > Let's define a verb: max which can be used either dyadically: > >5 max 7 > 7 > > or monadically: > >max 5 7 > 7 > > Can so

[Jprogramming] Self-reference in an explicit definition

2012-09-04 Thread Ian Clark
Let's define a verb: max which can be used either dyadically: 5 max 7 7 or monadically: max 5 7 7 Can somebody explain to me please (for the purpose of completing http://www.jsoftware.com/jwiki/Vocabulary/dollarco ) why this works: max=: $:/ : >. but this doesn't: max=: 3 : 0 $:/y : x>

Re: [Jprogramming] Self-reference $:

2012-07-26 Thread Raul Miller
$: here means the same thing that pn means (and it would have been clearer if pn had been used instead of $: If $: had just been the left verb in the gerund, you would be getting a domain error from trying to use i. on a complex argument (rec's arguments would go negative and we put them through %

[Jprogramming] Self-reference $:

2012-07-26 Thread David Vaughan
I was looking through the essay on the wiki about partitions, and I was looking at the verb pn: pn =: -/@(+/)@:($:"0)@rec ` (x:@(0&=)) @. (0>:]) M. rec =: - (-: (*"1) _1 1 +/ 3 * ]) @ (>:@i.@>.@%:@((2%3)&*)) I was a little confused about the way that $: works - does it re-execute the whole verb