[racket-dev] `string-split'

From: Laurent (laurent.orseau at gmail.com)
Date: Thu Apr 19 11:24:18 EDT 2012

> (TL;DR: I'd suggest two functions: one (string-words str)
> function that does Eli's way, and one (string-split str sep) that
> does it Laurent's way).

That would be a good option to me, considering that "my way" is with
remaining ""s in the output list.
The question remains if a string can be accepted for sep, in which case the
empty string must be considered, as pointed out in the Lua discussion.
Though a single char should be sufficient for nearly all simple cases.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20120419/deea01dd/attachment.html>

Posted on the dev mailing list.