A few minutes ago, Sam Tobin-Hochstadt wrote:
> I think it's really `(string-tring s "\n" #:left? #f)`.
Yes, but IIUC, the function that Asumu wrote is for tweaking output
strings, which makes `string-trim' relevant, and my guess is that the
extra trimming that it makes (other whitespaces, and any
On 2014-01-13 16:40:17 -0500, Eli Barzilay wrote:
> Why not (string-trim s #:left? #f) ?
Only because I didn't know it existed. Thanks!
Cheers,
Asumu
_
Racket Developers list:
http://lists.racket-lang.org/dev
I think it's really `(string-tring s "\n" #:left? #f)`.
Sam
On Mon, Jan 13, 2014 at 4:40 PM, Eli Barzilay wrote:
>> 4d44878 Asumu Takikawa 2014-01-06 17:47
>> :
>> | Move `chomp` function into its own util file
>> :
>> A pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/utils/string.rkt
>>
> 4d44878 Asumu Takikawa 2014-01-06 17:47
> :
> | Move `chomp` function into its own util file
> :
> A pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/utils/string.rkt
> M .../typed-racket-lib/typed-racket/utils/tc-utils.rkt | 8 +---
Why not (string-trim s #:left? #f) ?
--
4 matches
Mail list logo