Strings as series

Because strings are series of characters, all of the functions we talked about in this chapter also work for strings. Here are some examples of their usage with strings that show more advanced possibilities, which also apply to files, URLs, tags, and emails:

str: "Red"    ;== "Red"type? str     ;== string!string? str   ;== trueseries? str   ;== true

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.