[PD] splitting a list into pairs of two

Alexandros Drymonitis adrcki at gmail.com
Wed Oct 3 11:58:24 CEST 2012


Plus, the pairs I get with [list split 2] are
1 2
3 4
where I want to get
1 2
2 3
3 4
and if my list has got 5 elements
4 5
in the end..

On Wed, Oct 3, 2012 at 12:49 PM, Alexandros Drymonitis <adrcki at gmail.com>wrote:

> But if my list has an odd number of elements, then I lose the last one,
> don't I?
>
> On Wed, Oct 3, 2012 at 12:45 PM, IOhannes m zmoelnig <zmoelnig at iem.at>wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 2012-10-03 11:18, Alexandros Drymonitis wrote:
>> > Hi all, I'm trying to get pairs of two out of a list using two
>> > [list split] (I tried to reproduce the patch with ASCII, but it's
>> > getting a bit complicated, so I've attached it).
>>
>> how about using [list split 2]?
>>
>> fgamsdr
>> IOhannes
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.12 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAlBsCRsACgkQkX2Xpv6ydvS4awCg3giaFDQ+cFUxbtUFTDBHCZb7
>> xjMAoIVsyuWUDlM7PgUqmZFUPVk4qpY3
>> =1DTh
>> -----END PGP SIGNATURE-----
>>
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121003/d6acaa43/attachment.htm>


More information about the Pd-list mailing list