Hi, On Sun, 2016-09-04 at 20:58 -0400, Nicholas Park wrote: > If I understand what you're asking for, I think you want something > like > string.format() > <http://chapel.cray.com/docs/latest/modules/standard/IO.html#IO.strin > g.format> > .
Spot on, thanks. I wonder if this should be extracted from the IO module and made part of the standard string stuff? > For example, in Chapel on can do: > > > > > var x = 42; > > var y = 3.1415926; > > var m = "(%i, %r)".format(x,y); > > writeln(m); > > // Output: (42, 3.14159) > > which compares closely with the equivalent Python: This leads to a question about use, but I will post separately to create a new thread. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------
_______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users
