[Jprogramming] cut y in segments of each size being x's items

Brian Schott schott.brian at gmail.com
Tue Sep 18 14:36:58 UTC 2012


That is very clever. I don't think I have ever seen or thought of
using #\  and I haven't even yet investigated inv# especially as the
middle of a fork.

On Tue, Sep 18, 2012 at 10:08 AM, Raul Miller <rauldmiller at gmail.com> wrote:
>
>    takecut=: *@[ #inv ] </.~ +/\@[ I. #\@]
>    0 0 3 3 0 2 takecut i. 7
> ┌┬┬─────┬─────┬┬─┐
> │││0 1 2│3 4 5││6│
> └┴┴─────┴─────┴┴─┘
>
> --
> Raul

-- 
(B=)


More information about the Programming mailing list