Karl Glazebrook wrote: > you should look at the PDL mv() and xchg() methods > and factor this into your thinking! > Actually, the RFC is based on PDL's xchg()! I forgot to document using negative numbers to count from the last dimension--I'll add that into the next version. Are there any other differences with xchg() that you think would be useful? I haven't used mv() before, but now I look at it I can see it's pretty interesting. Is this used much? If we add it to the RFC, do you think we'd want a separate function, or add another arg to transpose: transpose([$a,$b], 0, @arr); # xchg transpose([$a,$b], 1, @arr); # mv
- RFC 272 (v1) Arrays: transpose() Perl6 RFC Librarian
- Re: RFC 272 (v1) Arrays: transpose() Karl Glazebrook
- Re: RFC 272 (v1) Arrays: transpose() Jeremy Howard
- Re: RFC 272 (v1) Arrays: transpose() Karl Glazebrook
- Re: RFC 272 (v1) Arrays: transpose() c . soeller
- Re: RFC 272 (v1) Arrays: transpose() Jeremy Howard
- Re: RFC 272 (v1) Arrays: transpo... Karl Glazebrook
- Re: RFC 272 (v1) Arrays: tra... Jeremy Howard
- Re: RFC 272 (v1) Arrays:... Karl Glazebrook
- Re: RFC 272 (v1) Arrays:... c . soeller
- Re: RFC 272 (v1) Arrays:... Jeremy Howard
- Re: RFC 272 (v1) Arrays: transpo... c . soeller
- Re: RFC 272 (v1) Arrays: tra... Jeremy Howard