Question about function
- To: mathgroup at smc.vnet.net
- Subject: [mg124398] Question about function
- From: oversky <mailcwc at gmail.com>
- Date: Wed, 18 Jan 2012 06:01:56 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
I define the following function: xPrint[x_]:=(Print[HoldForm[x]," =",Tab,x]); Attributes[xPrint]={HoldAll,Listable}; a=5; xPrint[a] -> a = 5 I want to modify this code such that it can handle multiple arguments. For example, a=5; b=6; xPrint[a,b] -> a = 5 -> b = 6 How do I get the argument one by one and feed it into Print[]?
- Follow-Ups:
- Re: Question about function
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: Question about function
- From: Fred Simons <f.h.simons@tue.nl>
- Re: Question about function
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Question about function