Threading 'Append'
- To: mathgroup at smc.vnet.net
- Subject: [mg62796] Threading 'Append'
- From: "J Siehler" <jsiehler at Gmail.com>
- Date: Mon, 5 Dec 2005 13:40:59 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
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?
- Follow-Ups:
- Re: Threading 'Append'
- From: <bsyehuda@Gmail.com>
- Re: Threading 'Append'
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: Threading 'Append'
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Threading 'Append'