(names: &[&str])
| 421 | } |
| 422 | |
| 423 | fn ci(names: &[&str]) -> HashMap<String, usize> { |
| 424 | names |
| 425 | .iter() |
| 426 | .enumerate() |
| 427 | .map(|(i, n)| (n.to_string(), i)) |
| 428 | .collect() |
| 429 | } |
| 430 | |
| 431 | fn rows_v(vals: &[i64]) -> Vec<Vec<Value>> { |
| 432 | vals.iter().map(|&v| vec![Value::Integer(v)]).collect() |