pub fn deindex(v: &mut Vec<u8>, l:usize)  {

    let (mut j, mut x) = (0,l);
    for i in v.clone().iter(){

        if x == 0 {
            v[j] = *i;
            j+=1;
        }

        if x>0 {x-=1;}

        if *i == '\n' as u8 {
            x=l;

        }
    }
    v.resize(j,0x00);

}
/** Function takes `Vec<u8>` and the length of an index
    and removes it from the data

    Example:
    in: AAAbbbbb\nACAbbbbb\nAGAbbbbb\nATAbbbbb
    out: bbbbb\nbbbbb\nbbbbb\nbbbbb\n
*/
Function takes `Vec` and the length of an index
and removes it from the data


Function takes ` Vec ` and the length of an index and removes it from the data
pub fn deindex(v: &mut Vec<u8>, l:usize)  {
    let (mut j, mut x) = (0,l);
    for i in v.clone().iter(){
        if x == 0 {
            v[j] = *i;
            j+=1;
        }
        if x>0 {x-=1;}
        if *i == '\n' as u8 {
            x=l;
        }
    }
    v.resize(j,0x00);
}
pub fn deindex ( v : & mut Vec < u8 > , l : usize ) { let ( mut j , mut x ) = ( 0 , l ) ; for i in v . clone ( ) . iter ( ) { if x == 0 { v [ j ] = * i ; j += 1 ; } if x > 0 { x -= 1 ; } if * i == '\n' as u8 { x = l ; } } v . resize ( j , 0x00 ) ; }
Function takes `Vec<u8>` and the length of an index
and removes it from the data
Function takes ` Vec<u8 > ` and the length of an index and removes it from the data
v
&mut Vec<u8>
l
usize
v
&mut Vec<u8>
l
usize