Skip to main content

concat

Function concat 

Source
pub fn concat(parts: &[&str]) -> String
Expand description

字符串连接,将参数列表拼接为一个字符串

§Examples

use librarys::string_utils::concat;
 
assert_eq!(concat(&["hello", "world"]), "helloworld");
assert_eq!(concat(&["a", "b", "c"]), "abc");