Welcome to the Rust category. This is a space to ask any Rust questions, discuss exercises from the Exercism Rust track, or explore any other Rust-related conversations!
Moved out of root and in to topic.
Hello, I want to ask how to solve Rust problems in Exercism. I don’t know how to start writing the solution to an exercise
(pub fn reverse(input: &str) → String {
todo!(“Write a function to reverse {input}”);
}).
Should I start writing the beginning of the solution to an exercise with the todo! string? I’d appreciate any clarification!
Hi Stas, I think before you start solving Rust problems on Exercism, you can quickly check the Rust book, to help yourself with basic Rust, it’s syntax and main entities (functions, macroses, etc.).
About your question, you may delete a line with todo!(...) macros and write your solution inside brackets {} of the function.
pub fn reverse(input: &str) → String {
//your code goes here
}
feel free to ask more questions if you have them.