<p>'trim' is used in lots of languages for this, and I think we should stick with that.</p>
<p>Sam</p>
<div class="gmail_quote">On Apr 18, 2012 3:28 PM, "Eli Barzilay" <<a href="mailto:eli@barzilay.org">eli@barzilay.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Just now, Matthias Felleisen wrote:<br>
><br>
> On Apr 18, 2012, at 3:12 PM, Eli Barzilay wrote:<br>
><br>
> > `string-normalize-spaces', which takes a string and a regexp for the<br>
> > spaces, and turns all spaces into single ones. Same principles as<br>
> > above. This one is getting a `#:trim?' keyword that says whether<br>
> > spaces at the edges should be dropped (the default) or normalized.<br>
> ><br>
> > BTW, I hate that name -- it makes the `string-' prefix looks even<br>
> > uglier... Any suggestions for a better name?<br>
><br>
><br>
> string-reduce<br>
><br>
> ?<br>
<br>
That sounds like a kind of a `fold'... (BTW, some names that I<br>
considered are: `normalize-spaces', `compact-spaces',<br>
`string-normalize'. They all had problems.)<br>
<br>
--<br>
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:<br>
<a href="http://barzilay.org/" target="_blank">http://barzilay.org/</a> Maze is Life!<br>
</blockquote></div>