Adds the string to the Octave script. At the end of the line a semicolon is appended. If the string contains two consecutive dollar signs (i.e. `$$`) these will be replaced by a vector containing the elements of iterator `vals`. # Example ``` # extern crate rustml; use rustml::octave::*; # pub fn main() { let v = vec![1, 2, 3]; let s = builder().add_vector_iter("x = $$", v.iter()); assert_eq!(
(&self, s: &str, vals: I)
| 137 | /// # } |
| 138 | /// ``` |
| 139 | pub fn add_vector_iter<T: fmt::Display, I: Iterator<Item = T>>(&self, s: &str, vals: I) -> OctaveScriptBuilder { |
| 140 | |
| 141 | let v = vals.collect::<Vec<_>>(); |
| 142 | self.add_vector(s, &v) |
| 143 | } |
| 144 | |
| 145 | /// Adds the string to the Octave script. |
| 146 | /// |
no test coverage detected