Can you explain what result you want to achieve here?

Thanks,

-- 
Raul


On Wed, Feb 5, 2014 at 9:09 AM, Pascal Jasmin <godspiral2...@yahoo.ca> wrote:
> And conjunctions are deprived of that opportunity.
>
> An example from the other thread, the conjunction:
>
> else =: 2 : '(u"_)`(v"_)'
>
>
> seems like a useful replacement to tie if you want eye candy for "verbifying" 
> any of its arguments, but it doesn't actually work for multiple applications:
>
>    3"_`+:`-:
> ┌─────────────────┬──┬──┐
> │┌─┬─────────────┐│+:│-:│
> ││"│┌─────┬─────┐││  │  │
> ││ ││┌─┬─┐│┌─┬─┐│││  │  │
> ││ │││0│3│││0│_││││  │  │
> ││ ││└─┴─┘│└─┴─┘│││  │  │
> ││ │└─────┴─────┘││  │  │
> │└─┴─────────────┘│  │  │
> └─────────────────┴──┴──┘
>
> produces 3 elements, but:
>
>    3"_`+:else -:
> ┌──────────────────────────────────────┬──────────────┐
> │┌─┬──────────────────────────────────┐│┌─┬──────────┐│
> ││"│┌──────────────────────────┬─────┐│││"│┌──┬─────┐││
> ││ ││┌─┬──────────────────────┐│┌─┬─┐││││ ││-:│┌─┬─┐│││
> ││ │││0│┌─────────────────┬──┐│││0│_│││││ ││  ││0│_││││
> ││ │││ ││┌─┬─────────────┐│+:│││└─┴─┘││││ ││  │└─┴─┘│││
> ││ │││ │││"│┌─────┬─────┐││  │││     ││││ │└──┴─────┘││
> ││ │││ │││ ││┌─┬─┐│┌─┬─┐│││  │││     │││└─┴──────────┘│
> ││ │││ │││ │││0│3│││0│_││││  │││     │││              │
> ││ │││ │││ ││└─┴─┘│└─┴─┘│││  │││     │││              │
> ││ │││ │││ │└─────┴─────┘││  │││     │││              │
> ││ │││ ││└─┴─────────────┘│  │││     │││              │
> ││ │││ │└─────────────────┴──┘││     │││              │
> ││ ││└─┴──────────────────────┘│     │││              │
> ││ │└──────────────────────────┴─────┘││              │
> │└─┴──────────────────────────────────┘│              │
> └──────────────────────────────────────┴──────────────┘
>
> produces only 2, as it applies rank to its entire u argument.
>
>
>
> ----- Original Message -----
> From: Raul Miller <rauldmil...@gmail.com>
> To: Programming forum <programm...@jsoftware.com>
> Cc:
> Sent: Tuesday, February 4, 2014 9:00:42 PM
> Subject: Re: [Jprogramming] Re {programming] setting rank to a a conjunction
>
> While you cannot "apply" rank to an adverb you can arrange for it to
> be applied to the result of the adverb.
>
> For example
>    Red=:   /("1)
>    +Red i.3 3
> 3 12 21
>
> Thanks,
>
> --
> Raul
>
>
> On Tue, Feb 4, 2014 at 8:08 PM, Don Guinn <dongu...@gmail.com> wrote:
>> OK. You're right it can be applied to nouns. But then it makes a constant
>> verb. What it cannot be applied to is an adverb or conjunction. Not that
>> there haven't been times that I wish that it could.
>>
>>
>> On Tue, Feb 4, 2014 at 5:26 PM, Dan Bron <j...@bron.us> wrote:
>>
>>> Hey now, don't rile the pedant. Rank also accepts noun LHA (and, FWIW,
>>> verb RHAs).
>>>
>>> That said, by definition,  13 : n will produce a verb, no matter what n
>>> is. (Well, ok, either a verb or an error.)
>>>
>>> -Dan
>>>
>>>
>>> > On Feb 4, 2014, at 8:17 AM, Don Guinn <dongu...@gmail.com> wrote:
>>> >
>>> > The rank conjunction only applies to verbs.
>>> >
>>> >
>>> >> On Tue, Feb 4, 2014 at 3:05 AM, linda <lindaalv...@verizon.net> wrote:
>>> >>
>>> >> In an earlier post :
>>> >>
>>> >>
>>> >>
>>> >>     t2=:  13 : '*/ |:  y '
>>> >>
>>> >>    t2
>>> >>
>>> >> [:   + /  |:
>>> >>
>>> >>
>>> >>
>>> >> Also:    J  "does it your way"
>>> >>
>>> >>
>>> >>
>>> >>     t3 =: 13 : ']@:+/"1  y '
>>> >>
>>> >>    t3
>>> >>
>>> >> ]@:+/"1
>>> >>
>>> >>
>>> >>
>>> >>       t3 3 3 $ i.9
>>> >>
>>> >> 3 12 2`
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> t3 is a verb, instead of a conjunction.
>>> >>
>>> >>
>>> >>
>>> >> Linda
>>> >>
>>> >>
>>> >>
>>> >> ----------------------------------------------------------------------
>>> >> For information about J forums see http://www.jsoftware.com/forums.htm
>
>>> > ----------------------------------------------------------------------
>>> > For information about J forums see http://www.jsoftware.com/forums.htm
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> 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