MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / tuple_get

Method tuple_get

ciphercore-base/src/graphs.rs:1098–1100  ·  view source on GitHub ↗

Adds a node that extracts an element of a tuple associated with the node. Applies [Graph::tuple_get] to the parent graph, `this` node and `index`. # Example ``` # use ciphercore_base::data_types::{INT32, array_type}; # use ciphercore_base::graphs::create_context; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t1 = array_type(vec![3, 2, 3], INT32); let t2 = array_type(

(&self, index: u64)

Source from the content-addressed store, hash-verified

1096 /// let n4 = n3.tuple_get(1).unwrap();
1097 /// ```
1098 pub fn tuple_get(&self, index: u64) -> Result<Node> {
1099 self.get_graph().tuple_get(self.clone(), index)
1100 }
1101
1102 /// Adds a node to the parent graph that extracts an element of a named tuple associated with the node.
1103 ///

Callers 15

test_tuple_get_workerFunction · 0.45
test_wellformed_casesFunction · 0.45
call_iterate_testFunction · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
single_iteration_graphFunction · 0.45
test_broadcast_divisorFunction · 0.45
test_broadcast_dividendFunction · 0.45
long_division_helperFunction · 0.45
instantiateMethod · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 15

test_tuple_get_workerFunction · 0.36
test_wellformed_casesFunction · 0.36
call_iterate_testFunction · 0.36
test_broadcast_divisorFunction · 0.36
test_broadcast_dividendFunction · 0.36
test_permutationFunction · 0.36
test_duplicationFunction · 0.36
test_inline_iterateFunction · 0.36
test_nested_iterateFunction · 0.36