I’m REALLY new at rust, and it is throwing me some curves.
What I want to do is just grab the first word off of a string, spliting at a space.
let chunks:Vec = vec!(address_string.split(" “).collect());
It prints out the whole original string, with the spaces removed. I assume the “collect()” statement is to blame for this, but the split function won’t work without it. It would be just about as useful to have a vector with all the words in the string, but, I don’t know how to get there either.
My first attempt was this, and got the same results:
let chunks:String = address_string.split(" “).collect();