[Jprogramming] cut with multiple subarrays
Tikkanz
tikkanz at gmail.com
Tue Dec 9 19:18:42 UTC 2014
I'd be inclined to try transforming your list of starting indicies and
lengths into a boolean suitable as a left argument to dyadic cut (;.). For
your example:
'|*' (e.~ ];._1 ]) str
ab
111
cd
222
On Wed, Dec 10, 2014 at 7:27 AM, Brian Schott <schott.brian at gmail.com>
wrote:
> Joe,
>
> Is this relevant?
>
> str(<@[{&>~([<@:+i.@])/"1@:]) (0,2),(3,3),(7,2),:(10,3)
>
>
>
>
> --
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list