Function std::either::partition

pub fn partition<L, R>(eithers: ~[Either<L, R>]) -> (~[L], ~[R])

Extracts from a vector of either all the left values and right values

Returns a structure containing a vector of left values and a vector of right values.