"Raul Miller" <[EMAIL PROTECTED]> wrote:

> On 2/27/07, I wrote:
>>   stk=: (]`,:`) (`:6)
>
> Actually, that's more verbose than needed -- the left
> set of parenthenthesis is not needed (though J does
> include them in its linear representation of the adverb):
>
>  stk=: ]`,:` (`:6)
>
> This suggests perhaps a better approach would be
>   train=: `:6
>   stk=: ]`,:` train
>
Thanks Raul.   I wonder why no-one suggested that last time
I asked ?  Or maybe I asked for something more complex, like,

   HdLt =: [EMAIL PROTECTED]
   TlLt =: {:@[
   pgr =: 2 : 'HdLt u. ] v. TlLt'

which I don't see how it could be done with 6: though maybe
you can show me how?   In any case, even if it can be done,
using gerunds in such fashion is hardly elegant or simple.

What I'd like is to be able to code is

   stk =: ] ,: [.
   pgr =: HdLt [. ] ]. TlLt

which seems to me (now that other use of [. and ]. has been
dropt) to be not only simple and elegant, but versatile as well.
Certainly it copes easily with multiple use of operands, as
mentioned by Jose Mario.

From: Jose Mario Quintana <[EMAIL PROTECTED]>

> However, it is not so clear to me how to proceed when u. appears
multiple
> times in the definition body.  I am confident that any verb can be
coded
> tacitly but I have never been convinced, to say the least, that any
adverb
> or conjunction could be coded tacitly using the J tacit facilities
provided
> for that purpose (not even in the "golden age" as referred by Henry
Rich).

I think there's a problem with the use of "tacit" and "explicit"
as though they were black and white.   Anyway, using [. and ]. as
operand
references would be just as tacit as using [ and ] as argument
references,
which they are in essence.  But using "function-level programming"
instead of "tacit programming" might be less confusing.

Neville Holmes, P.O.Box 404, Mowbray 7248, Tasmania
Normal e-mail: [EMAIL PROTECTED]

Send instant messages to your online friends http://au.messenger.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to