On Tue, Feb 4, 2014 at 12:08 PM, Pascal Jasmin <godspiral2...@yahoo.ca>wrote:

> I figured out one notGerund adverb, and an interesting implementation for
> if else

   0 else -: if (0>]) else +: if (0<]) i:5
> _2.5 _2 _1.5 _1 _0.5 0 2 4 6 8 10
>

This is neat, but I have a hard time reading English words right to left,
even though I'm (mostly) happy to read J code that way.

What if you called them 'except' and 'when' instead?

       0 except -: when (0>]) except +: when (0<]) i:5
    _2.5 _2 _1.5 _1 _0.5 0 2 4 6 8 10
       +: when (0<]) i:5
    _5 _4 _3 _2 _1 0 2 4 6 8 10
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to