MathGroup Archive 2010

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

Search the Archive

need something like ReplaceAllIndexed[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108463] need something like ReplaceAllIndexed[]
  • From: divisor <congruentialuminaire at yahoo.com>
  • Date: Fri, 19 Mar 2010 02:46:28 -0500 (EST)

Hello mathGroup:

I have an expression like this:

b[ a[c], a[c], a[d]]

a list like this:

{e,f,g}

I want to end up with

b[ a[e], a[f], a[g]]

I think of this as interleaving a list into an expression, but all my
tries with ./,.//,MapIndexed[],MapAt[], Partition[Riffle[]] have come
to no avail.

Any help on this is greatly appreciated.

Roger Williams
Franklin Laboratory
http://www.youtube.com/congruentlight


  • Prev by Date: Sorting nested lists
  • Next by Date: Re: Butterworth filter
  • Previous by thread: Re: Sorting nested lists
  • Next by thread: Re: need something like ReplaceAllIndexed[]