The issue you are encountering here is that adverbs and conjunctions cannot
be arguments to another adverb (or conjunction). Adverbs form trains,
instead.

So you'll need to get them into 5!:1 by reference (that is, by giving them
a name and using that name directly.

Try:
   train=: ////
   5!:1 <'train'

Thanks,

-- 
Raul


On Fri, Feb 28, 2014 at 10:14 AM, Pascal Jasmin <[email protected]>wrote:

> insert =. '/'
>
> isadverb insert
>
> or
>
> isadverb '/'
>
> considering that 5!:0 can be used to produce the adverb from string,
>
>    + (<'/') 5!: 0 ] 1 2 3
> 6
>
> that would seem to be a promissing path
>
> The only idea I have is to generate a trappable error that could
> distinguish between adverb/modifier and non-adverb, but I need ideas for
> one.
>
> Part of the problem I have is that I cannot seem to get either:
>
> ar =: 1 : '5!:1 <''u'''
> ar2 =: 3 : '5!:1 <''y'''
>
> to be able to return '4  Bonded conjunction or train of adverbs' from this
> page:
>
> http://www.jsoftware.com/help/dictionary/dx005.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