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 2000

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

Search the Archive

Re: Lost myHead, please help !!!

  • To: mathgroup at
  • Subject: [mg22370] Re: [mg22335] Lost myHead, please help !!!
  • From: Ken <Kenneth_Levasseur at>
  • Date: Sat, 26 Feb 2000 22:04:57 -0500 (EST)
  • Organization: UMass Lowell
  • References: <>
  • Sender: owner-wri-mathgroup at


You can use Apply:

x = {{a}, {b, c}}
{{a}, {b, c}}
Apply[myhead, x]
myhead[{a}, {b, c}]

The short form would be myhead@@x

Ken Levasseur
UMass Lowell

Antoine Zahnd wrote:
> Hello everybody,
> I can't do the following (sigh)
> Let x = {{a},{b,c}}
> I would like to tranform it into something like myHead[{a},{b,c}]
> Of course x /. {List->myHead} doesn't work !
> Certainly it is simple, but so far I didn't get it.
> Thank you for your help.
> antoine.zahnd at

  • Prev by Date: simple plot
  • Next by Date: Re: Help needed: How to add constraints into FullSimplify
  • Previous by thread: Lost myHead, please help !!!
  • Next by thread: Re: Lost myHead, please help !!!