fn take_jokers(&mut self) -> Sequence {
        let mut res = Sequence::new();
        let mut di: usize = 0;
        for i in 0..self.number_cards() {
            match &self.0[i-di] {
                Joker => {
                    res.add_card(self.take_card(i+1-di).unwrap());
                    di += 1;
                },
                _ => ()
            }
        }
        res
    }
/// take the jokers from the sequence and return them as a separate sequence
take the jokers from the sequence and return them as a separate sequence
take the jokers from the sequence and return them as a separate sequence
fn take_jokers(&mut self) -> Sequence {
        let mut res = Sequence::new();
        let mut di: usize = 0;
        for i in 0..self.number_cards() {
            match &self.0[i-di] {
                Joker => {
                    res.add_card(self.take_card(i+1-di).unwrap());
                    di += 1;
                },
                _ => ()
            }
        }
        res
    }
fn take_jokers ( & mut self ) -> Sequence { let mut res = Sequence :: new ( ) ; let mut di : usize = 0 ; for i in 0 .. self . number_cards ( ) { match & self . 0 [ i - di ] { Joker => { res . add_card ( self . take_card ( i + 1 - di ) . unwrap ( ) ) ; di += 1 ; } , _ => ( ) } } res }
take the jokers from the sequence and return them as a separate sequence
take the jokers from the sequence and return them as a separate sequence
&mut self
&mut self