pub fn parse_note_ans(ans: &str) -> usize {
    match ans {
        "first" => 1,
        "last" => g_get_notes_length(),
        _ => ans.parse().unwrap_or(0),
    }
}
// Replaces keywords to note numbers
// Or parses the string to a number
Replaces keywords to note numbers
Or parses the string to a number
Replaces keywords to note numbers Or parses the string to a number
pub fn parse_note_ans(ans: &str) -> usize {
    match ans {
        "first" => 1,
        "last" => g_get_notes_length(),
        _ => ans.parse().unwrap_or(0),
    }
}
pub fn parse_note_ans ( ans : & str ) -> usize { match ans { " " => 1 , " " => g_get_notes_length ( ) , _ => ans . parse ( ) . unwrap_or ( 0 ) , } }
Replaces keywords to note numbers
Or parses the string to a number
Replaces keywords to note numbers Or parses the string to a number
ans
&str