4fee30a38407 — Leonard Ritter a month ago
* String: support for casting to `string`
1 files changed, 3 insertions(+), 0 deletions(-)

M lib/scopes/String.sc
M lib/scopes/String.sc +3 -0
@@ 150,6 150,9 @@ typedef+ StringBase
         `Generator`, or directly passed to `for`.
     inline __as (cls T)
         static-if (T == Generator) string-generator
+        elseif ((cls.ElementType == i8) and (T == string))
+            inline (self)
+                string self._items self._count
 
     inline reverse (self)
         Generator