Question : rust get first char of string
Answered by : roey-kelner
let ch = text.chars().nth(0).unwrap();
Source : https://stackoverflow.com/questions/30811107/how-do-i-get-the-first-character-out-of-a-string | Last Update : Tue, 26 Jul 22
Answered by : roey-kelner
let ch = text.chars().nth(0).unwrap();
Source : https://stackoverflow.com/questions/30811107/how-do-i-get-the-first-character-out-of-a-string | Last Update : Tue, 26 Jul 22