Or
    ({. - +/@}.) 1 2 3 4 5
_13

On 9/28/2011 7:26 PM, Raul Miller wrote:
> On Wed, Sep 28, 2011 at 5:26 PM, Christopher McIntosh
> <[email protected]>  wrote:
>> How do I use / to get the result _13 (which is 1 - 2 - 3 - 4 - 5) when
>> applied to the list 1+i.5?
>
>    1-2-3-4-5
> 3
>     5-~4-~3-~2-~1
> _13
>     -~/|.1 2 3 4 5
> _13
>
>> I thought that I would simply apply it to the - dyad.  But -/ 1 2 3 4 5
>> returns 3 (1 - 2 + 3 - 4 + 5), which is alternating between subtraction and
>> addition.
>
>     1-(2-(3-(4-5)))
> 3
>
> ---
> 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