Something tells me my Pig Latin implementation from the exercise in Chapter 8 of the Rust Book (https://doc.rust-lang.org/stable/book/2018-edition/ch08-03-hash-maps.html) can be simplified. Had a nightmare with ownership while initially trying to use slices in the pig_latin function so ended up using Strings instead but it feels heavy.
Thoughts?
https://source.ind.ie/rust-book-exercises/chapter-8/pig-latin/blob/master/src/main.rs
tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.