<br><div class="gmail_quote">On Sun, Aug 16, 2009 at 17:00, Brandon S. Allbery wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
On Aug 16, 2009, at 06:45 , Maciej Piechotka wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have to write a function which calls a function with unknown (i.e.<br>
given in runtime) number and type of arguments.<br>
</blockquote>
<br></div>
Take a look at the implementation of Text.Printf.<br><font color="#888888">
</font></blockquote><div> <br>Or Text.XFormat.Show in xformat while you're at it. (Warning: blatant self-promoting.)<br><br> <a href="http://hackage.haskell.org/package/xformat">http://hackage.haskell.org/package/xformat</a><br>
<br>From the tests in the package:<br><br> showf (Show % Int % String) 4.05 20 " blah" == "4.0520 blah"<br> showf (Wrap '(' Int ')') 24 == "(24)"<br><br>Sean<br></div></div>