Re: List representation using element position
- To: mathgroup at smc.vnet.net
- Subject: [mg72541] Re: List representation using element position
- From: "Dr. Wolfgang Hintze" <weh at snafu.de>
- Date: Fri, 5 Jan 2007 02:38:18 -0500 (EST)
- References: <enfgem$ss1$1@smc.vnet.net> <enfvp1$727$1@smc.vnet.net> <eniohp$ha3$1@smc.vnet.net>
Bon jour Jean-Marc, there is absolutely no reason for apologizing; on the contrary! Your comment is completely correct. Actually, without stating it, I wanted the function to be applied to other elements that numbers. Hence mine is incorrect, or at least incomplete. Best regards, Wolfgang Jean-Marc Gulliet wrote: > 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 > >