Linda,
Thanks, I wasn't looking for simpler, I was looking for the item eaten by
;.1~ .

On Sun, Feb 24, 2019 at 10:50 PM Linda Alvord <[email protected]>
wrote:

> Brian,  Maybe g is a little simpler than f.
>
>
>    a
> 0 1 1 1 1 0 1 1 1 1 1 0 1 1
>    f
> [: ; <;.1~
>    g
> [: }: 1 |. ]
>    (f a)-: g a
> 1
>
> Linda
>
> -----Original Message-----
> From: Programming <[email protected]> On Behalf Of
> Brian Schott
> Sent: Sunday, February 24, 2019 1:41 PM
> To: Programming forum <[email protected]>
> Subject: Re: [Jprogramming] What is this?
>
> Maybe I'm confused, but I have not figured out why the results of the two
> calculations produce different length results: 13 for the first and 14 for
> the second when the inputs to both are 14? I imagined that was the reason
> for the original post.
>
>   #; <;.1~ [0,1 1 1 1 0 1 1 1 1 1 0 1 1
> 13
>   #;  <;.1~ [1,-.1 1 1 1 0 1 1 1 1 1 0 1 1
> 14
>    #0,1 1 1 1 0 1 1 1 1 1 0 1 1
> 14
>    #1,-.1 1 1 1 0 1 1 1 1 1 0 1 1
> 14
>
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to