Re: [racket-users] string-join vs string-append

2016-03-20 Thread Vincent St-Amour
On Thu, 17 Mar 2016 13:08:44 -0500, Arnel wrote: > > Hi, > > How does 'string-join' differ from 'string-append'? More specifically, why > does > the following code: > > (let ([z ""] > [y "b"]) > (string-join '(z y) "\n")) > > result in a contract violation, yet the following:

[racket-users] string-join vs string-append

2016-03-19 Thread Arnel
Hi, How does 'string-join' differ from 'string-append'? More specifically, why does the following code: (let ([z ""] [y "b"]) (string-join '(z y) "\n")) result in a contract violation, yet the following: (let ([z ""] [y "b"]) (string-append z y)) works without