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 2005

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

Search the Archive

Re: Threading 'Append'

  • To: mathgroup at
  • Subject: [mg62823] Re: [mg62796] Threading 'Append'
  • From: "David Park" <djmp at>
  • Date: Tue, 6 Dec 2005 00:03:35 -0500 (EST)
  • Sender: owner-wri-mathgroup at

What about...

MapThread[Join[#1, {#2}] &, {{{1, 2}, {3, 4}, {5, 6}}, {a, b, c}}]
{{1, 2, a}, {3, 4, b}, {5, 6, c}}

David Park
djmp at 

From: J Siehler [mailto:jsiehler at]
To: mathgroup at

If I run


I would expect to get


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

On the other hand,


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

  • Prev by Date: Re: Threading 'Append'
  • Next by Date: Re: Types in Mathematica, a practical example
  • Previous by thread: Re: Threading 'Append'
  • Next by thread: Re: Threading 'Append'