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 <[email protected]> To: Programming forum <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote: >> > >> > The rank conjunction only applies to verbs. >> > >> > >> >> On Tue, Feb 4, 2014 at 3:05 AM, linda <[email protected]> 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
