[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] array processing



Hello list,

I'm stuck on what seemed to be a simple problem at first. There must be a simple solution...

I want an array structured like this :

[ /pen/0, [ [ /0, /1, /2, /3, /4 ], /button, [ /1, /2, /3 ], / proximity ], /key, [ /1, /2, /3, /4 ] ]

to end up like this :

[ /pen/0/0, /pen/0/1, /pen/0/2, /pen/0/3, /pen/0/4, /pen/0/button/1, / pen/0/button/2, /pen/0/button/3, /pen/0/proximity, /key/1, /key/2, / key/3, /key/4 ]




It is clearer presented this way (I think):

[ /pen/0,
	[
		[ /0, /1, /2, /3, /4 ],
		/button,
			[ /1, /2, /3 ],
		/proximity
	],
/key,
	[ /1, /2, /3, /4 ]
]

Any suggestions ?

Martin Marier

_______________________________________________
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/