Thanks Henry & Raul - I figured it was rank but couldn't figure out why. I
guess I assumed it would somehow use the rank of the tines.

This NuVoc article is what tripped me up -
http://code.jsoftware.com/wiki/Vocabulary/curlylf

Specifically this example got me thinking that the 'inner' verb rank
mattered, but it was just my misread of the parentheses (there is no inner
verb!)

0 1 (<@,"0)/ 7 8 9

vs

 0 1 (<@,)"0/ 7 8 9

vs

0 1 <@,"0/ 7 8 9

all are the same, but it doesn't mean that placing rank inside the verb for
the / adverb matters. Sharing in case it helps someone else...

Thanks again

On Sat, Dec 2, 2017 at 2:39 PM, Henry Rich <[email protected]> wrote:

> Rank.
>
>    (~: *. (0&= @ |~)) b. 0
> _ _ _
>    (0&= @ |~) b. 0
> _ 0 0
>    ~: b. 0
> _ 0 0
>
> Henry Rich
>
>
>
> On 12/2/2017 2:34 PM, Joe Bogner wrote:
>
>> I was working on my adventofcode solution earlier today and was stuck and
>> still can't figure out why this doesn't work.
>>
>> Take this expression.
>>
>> (0&= @ |~)/~ 5 9 2 8
>>
>> 1 0 0 0
>>
>> 0 1 0 0
>>
>> 0 0 1 0
>>
>> 0 0 1 1
>>
>>
>> And this expression
>>
>>
>> (~:)/~ 5 9 2 8
>>
>> 0 1 1 1
>>
>> 1 0 1 1
>>
>> 1 1 0 1
>>
>> 1 1 1 0
>>
>>
>> Why can't I combine it into a single fork to AND the two tines?
>>
>>
>> (~: *. (0&= @ |~))/~ 5 9 2 8
>>
>> 0 0 0 0
>>
>>
>>
>> Instead I have to do this
>>
>>
>> (~:/~ *. (0&= @ |~)/~) 5 9 2 8
>>
>> 0 0 0 0
>>
>> 0 0 0 0
>>
>> 0 0 0 0
>>
>> 0 0 1 0
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to