now why didn't I think of trying that...<div><br></div><div>thanks for clearing it<div><br></div><div><div class="gmail_quote">On Fri, Nov 27, 2009 at 9:49 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
(string-append "the quick brown fox" str "lazy" str2)<br>
<br>
(and you won't believe it, string-append works for 12,345 strings, too. I just tried it out:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Welcome to DrScheme, version 4.2.3.2-svn20nov2009 [3m].<br>
Language: Module custom; memory limit: 256 megabytes.<br>
#<world><br>
> (define s (apply string-append (build-list 12345 (lambda _ "a"))))<br>
</blockquote>
<br>
)<div><div></div><div class="h5"><br>
<br>
On Nov 27, 2009, at 11:14 AM, Charlie Smith wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
string-append's fine if i want to add two stings only, but i'd like to add strings inbetween other strings, for example<br>
<br>
(define str "jumps over the ")<br>
(define str2 "dog")<br>
<br>
"the quick brown fox" + str + "lazy" + str2<br>
<br>
<br>
<br>
On Thu, Nov 26, 2009 at 10:42 PM, Robby Findler <<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>> wrote:<br>
I believe string-append is exactly what the + is doing below, tho.<br>
What is different?<br>
<br>
Robby<br>
<br>
On Thu, Nov 26, 2009 at 6:43 AM, Charlie Smith<br>
<<a href="mailto:charliesmith001@gmail.com" target="_blank">charliesmith001@gmail.com</a>> wrote:<br>
> hi<br>
><br>
> i'd like to know if there is some way of adding strings (sorry, i don't what<br>
> the correct term for this is, maybe variable interpolation?) like for<br>
> example in ruby it would be like<br>
><br>
> str = "sdfdsf"<br>
> puts "something" + str<br>
> output: "somethingsdsdf"<br>
><br>
> the function string-append isn't what I want, because i would be adding<br>
> strings somewhat arbitarily in between other strings<br>
><br>
><br>
><br>
><br>
><br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
><br>
><br>
<br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</blockquote>
<br>
</div></div></blockquote></div><br></div></div>