Re: Driving me nuts
- To: mathgroup at smc.vnet.net
- Subject: [mg33814] Re: [mg33801] Driving me nuts
- From: Ken Levasseur <Kenneth_Levasseur at uml.edu>
- Date: Fri, 19 Apr 2002 02:27:30 -0400 (EDT)
- References: <200204160751.DAA20145@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Steve:
Start with
lstr[lst_]:= ...
instead of
listr[lst]:= ...
That's all.
Ken Levasseur
Steve Gray wrote:
> The following simple function does not do anything
> when called except echo its name.
> Any tips will be appreciated, to put it mildly.
>
> listr[lst] := Module[{lct, itm, str},
> str = ".";
> For [ lct = 1, lct <= Length[lst], lct++,
> { itm = lst[[lct]];
> If[itm <= 9, itm = itm + 48, itm = itm + 55];
> str = StringInsert[str, FromCharacterCode[itm], 1];
> }]
> Return[Reverse[str]];
> ]
>
> foo = {1, 4, 14, 23}
> listr[foo]
> listr[{1, 4, 14, 23}]
>
> The last line shows what happens. No errors are reported.
>
> Thanks for any info.
- References:
- Driving me nuts
- From: "Steve Gray" <stevebg@adelphia.net>
- Driving me nuts