combine_data_objects

Function combine_data_objects 

Source
pub fn combine_data_objects(
    data_objects: &[DataObjectRef],
    interpreter: &mut Interpreter,
    pos: CodePosition,
) -> OptionDataObjectRef
Expand description

This functions combines a list of DataObjectRefs into a single DataObjectRef

This function will return …

  • None if data_objects is empty.
  • … the first value if there is exactly one DataObjectRef in data_objects.
  • … the first non-Void if there is exactly one non-Void DataObjectRef in data_objects.
  • … a new Void value if all values in data_objects are Void.
  • … a new Text value by stripping all Void values and converting all remaining data_objects to Text and concatenating them.