3 ms·
I agree with Steve that you'll probably love the "Learning Rust With Entirely Too Many Linked Lists" that he linked to. While not as complex as that, I would l
by carols10cents 10y ago
I agree with Steve that you'll probably love the "Learning Rust With Entirely Too Many Linked Lists" that he linked to.
While not as complex as that, I would like to hear what you think about the slices section in the new version of the book: http://rust-lang.github.io/book/ch04-03-slices.html http://rust-lang.github.io/book/ch04-03-slices.html
It introduces slices by starting with functions that use indexes into `String`s, which sounds similar to what you were doing. It demonstrates the problems with that approach, and then shows how to use slices instead.
I'm not sure if slices would have worked well in your cases, but this chapter is so similar to what you said I wanted to point it out!
- scott_s 10y agoI liked the slices section. (And I personally found it more direct and more useful than the linked list post.)
- carols10cents 10y agoAwesome!!! Glad to hear it :)