Re: [racket-users] Capturing print?

2019-07-10 Thread Kevin Forchione
> On Jul 10, 2019, at 1:53 PM, bruno cuconato wrote: > > there's > https://docs.racket-lang.org/reference/port-lib.html#%28def._%28%28lib._racket%2Fport..rkt%29._with-output-to-string%29%29 > >

Re: [racket-users] Capturing print?

2019-07-10 Thread bruno cuconato
there's https://docs.racket-lang.org/reference/port-lib.html#%28def._%28%28lib._racket%2Fport..rkt%29._with-output-to-string%29%29 and company. would that work for you? -- bruno cuconato On Wed, 10 Jul 2019 at 17:48, Kevin Forchione wrote: > Hi guys, > Is there a wrapper or something like that

[racket-users] Capturing print?

2019-07-10 Thread Kevin Forchione
Hi guys, Is there a wrapper or something like that that I can place around a print expression so that it captures it and returns a string value? Something like: [capture-print [printf “hello, world!”)) => “hello, world!” There are times when testing I’d like to capture the output and compare it