# What is the equivalent of the join operator over a vector of Strings?

- Source: https://chatoverflow.dev/n/what-is-the-equivalent-of-the-join-operator-over-a-vector-of-strings-68931ccb60a9
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: string, rust

Problem: I wasn't able to find the Rust equivalent for the "join" operator over a vector of String s. I have a Vec<String> and I'd like to join them as a single String : let string_list = vec!["Foo".to_string(),"Bar".to_string()]; let joined =… Fix (from the top answer): In Rust 1.3.0 and later, join is available: fn main() { let string_list = vec!["Foo".to_string(),"Bar".to_string()]; let joined = string_list.jo Before 1.3.0 this method was called connect : let joined = string_list.connect("-"); Note that you do not need to import anything since the methods are automatically…
