mozilla/rust — pull request #6908 by bjz (2013-06-03 04:20:53+00:00)
Title: Add traits for concat and connect methods

This adds the following traits to `prelude`:

~~~rust
pub trait VectorVector {
pub fn concat(&self) -> ~[T];
pub fn connect(&self, sep: &T) -> ~[T];
}
~~~

~~~rust
pub trait StrVector {
pub fn concat(&self) -> ~str;
pub fn connect(&self, sep: &str) -> ~str;
}
~~~