Adds a node that creates a tuple from several (possibly, zero) elements. # Arguments `elements` - vector of nodes # Returns New node with a tuple # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{INT32, array_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t1 = array_type(vec![3, 2, 3], INT32); let t2 = array_typ
(&self, elements: Vec<Node>)
| 2730 | /// let n3 = g.create_tuple(vec![n1,n2]).unwrap(); |
| 2731 | /// ``` |
| 2732 | pub fn create_tuple(&self, elements: Vec<Node>) -> Result<Node> { |
| 2733 | self.add_node(elements, vec![], Operation::CreateTuple) |
| 2734 | } |
| 2735 | |
| 2736 | /// Adds a node that creates a vector from several (possibly, zero) elements of the same type. |
| 2737 | /// |