That was what I came up to myself, more or less, but I thought I was 
overlooking a tacit construction.

You know perhaps the puzzles of trying with a few given numbers to build 
another given number by using only elementary mathematical
operators and an arbitrary amount of (matching) parentheses. So, e.g. how can 1 
3 4 6 give 24? (give it a try)

I came up with all the 120 possibilities of the 3 combinations out of 6 
possible elementary operators to insert between all the 24
possible combinations of the 4 numbers. And then wanted to evoke gerund `: 3 
for every gerund to every combination and check the
output.

So (4 :'x`:3 y'"1"_ 1) does the job.


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [email protected] 
> [mailto:[email protected]] Namens Raul Miller
> Verzonden: woensdag 23 januari 2013 19:27
> Aan: [email protected]
> Onderwerp: Re: [Jprogramming] applying >1 gerunds to a set of items
> 
> On Wed, Jan 23, 2013 at 12:29 PM, R.E. Boss <[email protected]> wrote:
> > In  <http://www.jsoftware.com/help/dictionary/d612.htm> 
> > http://www.jsoftware.com/help/dictionary/d612.htm (`: n) is
> explained, but
> > how do I apply a set of gerunds to one set of items?
> 
> That's what already happens, but if you want to match the gerund to
> the item, I'd do something like this:
> 
>    grea=: 4 :'x`:6 y'"0 _1
>    1:`2:`3: grea 7 8 9
> 
> --
> Raul
> ----------------------------------------------------------------------
> 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