Skip to main content

trim_function

Function trim_function 

Source
pub fn trim_function(parameters: &[String]) -> String
Expand description

Trims the parameters. If there is more than one parameter, then concatenates them.

Eg.

trim "  hello"
trim " hello " "   world" "text  "

Expected output:

hello
helloworldtext