Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created March 23, 2012 22:19
Show Gist options
  • Save nikomatsakis/2175644 to your computer and use it in GitHub Desktop.
Save nikomatsakis/2175644 to your computer and use it in GitHub Desktop.
fn concat<T: copy>(v: [const [const T]]) -> [T] {
let mut r: [T] = [];
for inner: [T] in v { r += inner; }
ret r;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment