Re: Short, simple - Why doesn't it work as a function

*To*: mathgroup at smc.vnet.net*Subject*: [mg71795] Re: [mg71765] Short, simple - Why doesn't it work as a function*From*: Sseziwa Mukasa <mukasa at jeol.com>*Date*: Wed, 29 Nov 2006 02:56:37 -0500 (EST)*References*: <200611281104.GAA27958@smc.vnet.net>

On Nov 28, 2006, at 6:04 AM, wooks wrote: > {#, a} & /@ {a, b, c} > > gives {{a, a}, {b, a}, {c, a}} which is what i want. > > why[x_List] := {#, a} & /@ x; > why[{a, b, c}] > > gives. > > {{a, a}, {{b, a}, {{c, a}, {}}}} > > not what I want. > > I've checked the FullForms and they are different - why?? I cannot duplicate your results, are there other definitions of why[] in your notebook? Regards, Ssezi

**References**:**Short, simple - Why doesn't it work as a function***From:*"wooks" <wookiz@hotmail.com>