Files
rust/src/libcore/iter-trait/vec.rs
2012-04-27 16:57:50 -07:00

10 lines
181 B
Rust

type IMPL_T<A> = [const A];
fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
vec::each(self, f)
}
fn SIZE_HINT<A>(self: IMPL_T<A>) -> option<uint> {
some(vec::len(self))
}