MathGroup Archive 2005

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

Search the Archive

Threading 'Append'


If I run

Thread[Append[{{1,2},{3,4},{5,6}},{a,b,c}]]

I would expect to get

{{1,2,a},{3,4,b},{5,6,c}}

but in fact I get an 'Objects of unequal length' error.

On the other hand,

Thread[foo[{{1,2},{3,4},{5,6}},{a,b,c}]]
%/.foo->Append

gives what I wanted.  Can someone explain what's going on?


  • Prev by Date: Re: How to draw elliptical curve
  • Next by Date: Re: Re: Types in Mathematica thread
  • Previous by thread: Re: How would you evaluate this limit in Mathematica
  • Next by thread: Re: Threading 'Append'