Adds a node that takes vectors V 1 (n, t 1 ), V 2 (n, t 2 ), ..., V k (n, t k ) of the same length and returns a vector V(n, tuple(t 1 , ..., t k )) (similar to [zip](https://doc.rust-lang.org/stable/std/iter/fn.zip.html)). # Arguments `nodes` - vector of nodes containing input vectors # Returns New zip node # Example ``
(&self, nodes: Vec<Node>)
| 2904 | /// let n3 = g.zip(vec![n1,n2]).unwrap(); |
| 2905 | /// ``` |
| 2906 | pub fn zip(&self, nodes: Vec<Node>) -> Result<Node> { |
| 2907 | self.add_node(nodes, vec![], Operation::Zip) |
| 2908 | } |
| 2909 | |
| 2910 | /// Adds a node that creates a vector with `n` copies of a value of a given node. |
| 2911 | /// |