> Dan, is this one of the cases where you can't avoid the
> brackets with forks and tildes and similar things?
Z=: _1&{::
F=: , (0&{::) <@f (_1&{::)
G=: , (0&{::) <@g (_1&{::)
H=: , (0&{::) <@h (1&{::)
A=: ,&<
FOO=: Z @ F @ G @ H @ A
a FOO b
(a f (a g (a h b)))
a f a g a h b
(a f (a g (a h b)))
----- Original Message -----
From: Zsbán Ambrus <[email protected]>
Date: Monday, June 14, 2010 4:29
Subject: Re: [Jchat] please abbreviate
To: Chat forum <[email protected]>
> On Mon, Jun 14, 2010 at 1:13 AM, Dan Bron <[email protected]> wrote:
> > a ([ f [ g h) b
>
> Let's test that
>
> f=:'(',[,' f ',],')'"_
> g=:'(',[,' g ',],')'"_
> h=:'(',[,' h ',],')'"_
> a=:'a'
> b=:'b'
> a f a g a h b
> (a f (a g (a h b)))
> a ([ f [ g h) b
> (a f (a g (a h b)))
>
> Seems right. Dan, is this one of the cases where you can't
> avoid the
> brackets with forks and tildes and similar things?
>
> Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm