Skip to main content

fn_split

Function fn_split 

Source
pub fn fn_split(
    delimiter: impl Into<String>,
    source: impl Into<ExpString>,
) -> ExpString
Expand description

Helper function to create a split expression

Returns an ExpString::Split expression representing a Fn::Split operation. Typically used with fn_select_string to extract specific elements.

§Arguments

  • delimiter - The delimiter to split on
  • source - The source string to split

§Examples

// Select first element from split result
let first = fn_select_string(0, vec![fn_split(",", "a,b,c")]);