MathGroup Archive 2004

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

Search the Archive

Re: newbie myHead question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg47047] Re: newbie myHead question
  • From: "Peltio" <peltio at twilight.zone>
  • Date: Mon, 22 Mar 2004 05:19:10 -0500 (EST)
  • References: <c3h1jj$bc8$1@smc.vnet.net>
  • Reply-to: "Peltio" <peltioNOSP at Mdespammed.com.invalid>
  • Sender: owner-wri-mathgroup at wolfram.com

"János" wrote

>m = {{a, b}, {a, b}, {a, b}}
>n = Apply[myHead, m]
>Transpose[n]
    >Transpose[myHead[{a, b}, {a, b}, {a, b}]]

>I need>
    >myHead[{a,a,a},{b,b,b}]

myHead@@Transpose[List@@n]

cheers,
Peltio
Invalid mail in reply-to. Crafty demunging required to mail me.



  • Prev by Date: Re: newbie myHead question
  • Next by Date: Re: newbie Comment question
  • Previous by thread: Re: newbie myHead question
  • Next by thread: Re: newbie myHead question