Closed
Description
From reddit: http://www.reddit.com/r/rust/comments/2bpenl/confused_by_the_purpose_of_str_and_string/cj7rt1u
- add a section for indexing - i.e. how do I compare just the first 3 characters of two strings? Or fetch the character in position 3 in the string? Or iterate through the characters in the string?
- comparing - i.e. how do I know if one string is greater than another - and on what basis is the ordering done (binary value of the strings, or based on character set)?
- applying regular expressions to strings, is &str preferred over String for this?
I like all of these, and they should be in the guide.
Metadata
Metadata
Assignees
Labels
No labels