pub fn ite_concat_split(
s: &'static [&'static str],
delimiter: &'static [&'static str],
) -> (Value, Value)
Expand description
Performs conditional splitting of string slices based on whether each string starts with its corresponding delimiter. The function returns a tuple containing a boolean value and a string value.
Iterates over paired elements from the input slices, asserting equal lengths, and checks if each string begins with the associated delimiter. It collects a boolean flag indicating the match and, when a match is present, stores the string segment after the delimiter; otherwise, it retains the original string. The resulting vectors are converted into a boolean value and a string value, respectively.