building a list provided the position of element is known
- To: mathgroup at smc.vnet.net
- Subject: [mg67976] building a list provided the position of element is known
- From: "Arkadiusz Majka" <Arkadiusz.Majka at telekomunikacja.pl>
- Date: Thu, 20 Jul 2006 06:04:10 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I have two elements, say A and B and their positions in a three dimensional list. Eg {1,3} means that position of A is 1 , position ob is 3 and a list is given {A,_,B}. {3,2} corresponds to {_,B,A}, {3,3} corresponds to {_,_,{A,B}}. How can I code it in Mathematica using any number of elements and a list of any length>0? Thx, Arek