>>>>> Chris Marshall <[email protected]> writes: >>>>> On 3/8/2011 4:17 AM, Ivan Shmakov wrote:
[…]
>> Now, is there an easy way to get the original array /except/ that
>> span? (I. e., [0, 1, 2, 6, 7], in the case above.)
>> TIA.
> where or dice can maintain dataflow:
[…]
> pdl> p $b = $a->where($mask)
> [0 1 2 6 7]
[…]
> append with a couple of slices doesn't maintain dataflow:
> pdl> $c = append($a(0:2),$a(6:-1))
[…]
> another way with a different "twist" (maintains dataflow):
> pdl> $d = $a->rotate(-3)->(3:-1)->rotate(3)
[…]
Thanks!
PS. Actually, it seems that I've missed PDL::Slices(3pm) completely.
--
FSF associate member #7257
pgpE8StEmLOGh.pgp
Description: PGP signature
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
