Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Feefladderâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #292879 |
Post edited: |
— | 23 days ago |
Edit | Post #292879 |
Post edited: use `chars()` iterator. |
— | 23 days ago |
Edit | Post #292879 | Initial revision | — | 23 days ago |
Answer | — |
A: Parsing numbers from a text file using rfind and find as `str.chars().find(|c| "0123456789".contains(c))` and `str.chars().find(|c| "0123456789".contains(c))`, then a manual match block is the simplest solution I think: edit str.find returns index, so better to call `chars()` first for functional-style. ```rust fn chartoint(c... (more) |
— | 23 days ago |