Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: List element replacement.

  • To: mathgroup at
  • Subject: [mg52006] Re: List element replacement.
  • From: David Bailey <dave at>
  • Date: Sun, 7 Nov 2004 01:03:21 -0500 (EST)
  • References: <cmhu6a$pl4$>
  • Sender: owner-wri-mathgroup at

Robert G. Wilson v wrote:
> Et al,
> 	HELP, I tried this once before but what I received back I could not make it work. 
> Therefore I am following the adage that if at first you do not succeed then wait 
> awhile, rethink, restate and resubmit.
> 	I have three lists of objects, sorted but not unioned, that is there are elements 
> which will be repeated. Let us label them 'initial' list, 'compare' list, and 
> 'replace' list. If all of the elements in the 'compare' list, including repeats, 
> are in the 'initial' list, then remove those elements and put in the elements from 
> the 'replace' list.
> Thank you in advance,
> Bob.
Are your lists meant to be of the same length - I presume not - but in 
that case how do I know which element of the replace list to use?

I suggest you post an example of your three lists and the result that 
you would like to obtain.

David Bailey

  • Prev by Date: Re: List element replacement.
  • Next by Date: Re: normal digits base 10 ( used to be: bimodal ditribution form counting signs of Pi digits differences)
  • Previous by thread: Re: List element replacement.
  • Next by thread: Re: Inverse of "PowerExpand"