Using Map with function that has options...
- To: mathgroup at smc.vnet.net
- Subject: [mg68475] Using Map with function that has options...
- From: "Giacomo Ciani" <giacomo.ciani at gmail.com>
- Date: Mon, 7 Aug 2006 01:40:29 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I have several expressions I whant to convert to string and then concatenate togheter to create a message to be sent to the standard output and written on a text log file. To avoid manually appliyng ToString to each of them, I'm using something like: myMessage = StringJoin@@Map[ToString,{expr1,expr2,expr3,...,exprN}] The problem is that I would like to specify the option "TraditionalForm" for ToString (without that, the exponents are written on a different line compromising the formatting), but I can't understand if using this tecnique I can do that, and how. Obviously I can solve the problem with an explicit loop over the element of the array, but I was looking for a more elegant solution... any idea? Thanks Giacomo P.S. expr are in general both strings or numeric values
- Follow-Ups:
- Re: Using Map with function that has options...
- From: jmt <jmt@dxdydz.net>
- Re: Using Map with function that has options...
- From: bsyehuda@gmail.com
- Re: Using Map with function that has options...
- From: "Chris Chiasson" <chris@chiasson.name>
- Re: Using Map with function that has options...