[Cs-dev] joinarray?
| Date | 2013-09-08 17:29 |
| From | joachim heintz |
| Subject | [Cs-dev] joinarray? |
i am currently describing the existing array opcodes for the csound
floss manual. do we already have a counterpart to slicearray? syntax
could be:
kArr[] joinarray kArr1, kArr2
where kArr1 and kArr2 are already existing arrays, whereas kArr is
created in appending kArr2 to kArr1. for instance:
kArr1[] array 1, 2, 3
kArr2[] array 4, 5, 6, 7
kArr[] joinarray kArr1, kArr2
kArr is now [1, 2, 3, 4, 5, 6, 7].
is this already possible?
thanks -
joachim
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |
| Date | 2013-09-08 17:43 |
| From | Andres Cabrera |
| Subject | Re: [Cs-dev] joinarray? |
| Attachments | None None |
That sounds useful, and it could be a good idea to have operators to do this work too, e.g.: kArr3[] = kArr1 + kArr2kArr1[] array 1, 2, 3 kArr2[] array 4, 5, 6 ; kArr3 = [ 5, 7, 9] kArr3[] = kArr1 __ kArr2 ; kArr3 =[1, 2, 3, 4, 5, 6] Andres On Sun, Sep 8, 2013 at 9:29 AM, joachim heintz <jh@joachimheintz.de> wrote: i am currently describing the existing array opcodes for the csound |
| Date | 2013-09-08 18:05 |
| From | Victor Lazzarini |
| Subject | Re: [Cs-dev] joinarray? |
Maybe we can put together a list of useful operations like concatenation etc. and implement them. Victor On 8 Sep 2013, at 17:43, Andres Cabrera wrote: > That sounds useful, and it could be a good idea to have operators to do this work too, e.g.: > > kArr1[] array 1, 2, 3 > kArr2[] array 4, 5, 6 > > kArr3[] = kArr1 + kArr2 > ; kArr3 = [ 5, 7, 9] > > > kArr3[] = kArr1 __ kArr2 > ; kArr3 =[1, 2, 3, 4, 5, 6] > > Cheers, > Andres > > > On Sun, Sep 8, 2013 at 9:29 AM, joachim heintz |
| Date | 2013-09-08 18:18 |
| From | joachim heintz |
| Subject | Re: [Cs-dev] joinarray? |
wonderful, yes. Am 08.09.2013 19:05, schrieb Victor Lazzarini: > Maybe we can put together a list of useful operations like concatenation etc. and implement them. > > Victor > On 8 Sep 2013, at 17:43, Andres Cabrera wrote: > >> That sounds useful, and it could be a good idea to have operators to do this work too, e.g.: >> >> kArr1[] array 1, 2, 3 >> kArr2[] array 4, 5, 6 >> >> kArr3[] = kArr1 + kArr2 >> ; kArr3 = [ 5, 7, 9] >> >> >> kArr3[] = kArr1 __ kArr2 >> ; kArr3 =[1, 2, 3, 4, 5, 6] >> >> Cheers, >> Andres >> >> >> On Sun, Sep 8, 2013 at 9:29 AM, joachim heintz |