[squeak-dev] The Trunk: Collections-pre.857.mcz
christoph.thiede at student.hpi.uni-potsdam.de
christoph.thiede at student.hpi.uni-potsdam.de
Sun Jun 20 09:51:30 UTC 2021
> Character class>>separators
> "Answer a collection of the standard ASCII separator characters."
>
> ^ #(32 "space"
> 13 "cr"
> 9 "tab"
> 10 "line feed"
> 12 "form feed"
> 1 "text separator")
> collect: [:v | Character value: v] as: String
>
> This seems simple and clear to me.
+1, just were stumbling upon this missing separator right now, too. See also: http://forum.world.st/ENH-isSeparator-tp5129517.html :-)
Hm, why don't we have #separators depend on #isSeparator and use a cache? It should not be slower but we would save some duplication ...
Best,
Christoph
More information about the Squeak-dev
mailing list
|