[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] create subarray each 4 items
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] create subarray each 4 items
- From: ronni montoya <ronni.montoya@xxxxxxxxx>
- Date: Sun, 30 Dec 2012 08:29:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nhQE9NboxozyZhnEgVrb9KR9Gm4FrC/PWQgU1Al6fts=; b=C75PFNS0c2iV2b+Y8UrgOnUgx51UnDpAhOAKDOn2/1JuG10LOxduSP2ZdOxw+YeHuI yTooGvY1K1bmfnjMeD9L05EzkOh51lPo1I5W+miDLLFBiVgvsdeXhriHZIf6McntoH8W 7WLwq16DhQ1S8AAuhMAE1BMlyWrtcpx9Vk28Gt7J0XVUTtNKOTblTBHTvYmf4XHyBFmw ZkuD6jZ7yULNq4k0FCRh+lp55OOAvc+tZGrPp/2gGZ7nyTTdh5oq70xct3E+HQ8LznGR ElyFiOz4/ckxWVdUgQwZSJ6eXacTqzRK2/vjGo6RGzTvuaonmx988d0297H+W9ItN901 1IjA==
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi list, i was wondering which is the easiest way for creating a
subarray each 4 items , for example if i have:
[2,4, 5, 6,1 3, 6, 3, 6, 2, 4, 1]
I would like to have:
[[2,4, 5, 6] ,[1 3, 6, 3], [6, 2, 4, 1]]
is there is an easy way instead of creating a function?
cheers
R.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/