Re: List representation using element position
- To: mathgroup at smc.vnet.net
- Subject: [mg72517] Re: List representation using element position
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Thu, 4 Jan 2007 06:32:15 -0500 (EST)
- Organization: The Open University, Milton Keynes, UK
- References: <enfgem$ss1$1@smc.vnet.net> <enfvp1$727$1@smc.vnet.net>
Jean-Marc Gulliet wrote: > Dr. Wolfgang Hintze wrote: >> Hello group, >> happy new year to all of you! >> >> This one was put up in a slightly different form by me in March 2006. >> It is now more general and it is lossless with respect to information: >> >> Given a list of integers which may repeat, e.g. <.. snip..> >> My solution appears 15 lines below > > By the way, your solution works "correctly" only for a list of positive > integers. (Otherwise, the elements of the original list are replace by > their index number, index number starting from one.) Compare, <..snip..> Sorry Wolfgang, Forgive me for this silly comment, since you explicitly and correctly describe what you expect in your original post, post that, for whatever reason, I fail to keep in mind! Regards, Jean-Marc