fn extract_io_example(&mut self, io_examples: Vec<String>) {
        for (i, io_example) in io_examples.iter().enumerate() {
            // IO example of even index is input.
            if i % 2 == 0 {
                self.input.push(io_example.to_string());
            } else {
                self.output.push(io_example.to_string());
            }
        }
    }
/// Push i/o examples to vector in a struct itself.
Push i/o examples to vector in a struct itself.
Push i / o examples to vector in a struct itself .
fn extract_io_example(&mut self, io_examples: Vec<String>) {
        for (i, io_example) in io_examples.iter().enumerate() {
            // IO example of even index is input.
            if i % 2 == 0 {
                self.input.push(io_example.to_string());
            } else {
                self.output.push(io_example.to_string());
            }
        }
    }
fn extract_io_example ( & mut self , io_examples : Vec < String > ) { for ( i , io_example ) in io_examples . iter ( ) . enumerate ( ) { // IO example of even index is input. if i % 2 == 0 { self . input . push ( io_example . to_string ( ) ) ; } else { self . output . push ( io_example . to_string ( ) ) ; } } }
Push i/o examples to vector in a struct itself.
Push i / o examples to vector in a struct itself .
&mut self
io_examples
Vec<String>
&mut self
io_examples
Vec<String>