pub fn delete_lines(numbers: Vec<usize>) {
    let lines = g_get_notes_vec();
    let mut new_lines: Vec<&str> = vec![];

    for (i, line) in lines.iter().enumerate() {
        if i == 0 || !numbers.contains(&i) {
            new_lines.push(line);
        }
    }

    update_file(new_lines.join("\n"));
}
// Deletes a line from the notes then updates the file
Deletes a line from the notes then updates the file
Deletes a line from the notes then updates the file
pub fn delete_lines(numbers: Vec<usize>) {
    let lines = g_get_notes_vec();
    let mut new_lines: Vec<&str> = vec![];
    for (i, line) in lines.iter().enumerate() {
        if i == 0 || !numbers.contains(&i) {
            new_lines.push(line);
        }
    }
    update_file(new_lines.join("\n"));
}
pub fn delete_lines ( numbers : Vec < usize > ) { let lines = g_get_notes_vec ( ) ; let mut new_lines : Vec < & str > = vec ! [ ] ; for ( i , line ) in lines . iter ( ) . enumerate ( ) { if i == 0 || ! numbers . contains ( & i ) { new_lines . push ( line ) ; } } update_file ( new_lines . join ( " \n " ) ) ; }
Deletes a line from the notes then updates the file
Deletes a line from the notes then updates the file
numbers
Vec<usize>