>
> (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.

Laurent
_________________________
  Racket Developers list:
  http://lists.racket-lang.org/dev

Reply via email to