Skip to content

Commit 073d248

Browse files
committed
---
yaml --- r: 12233 b: refs/heads/master c: 9bff2f2 h: refs/heads/master i: 12231: 6308340 v: v3
1 parent cba7f7a commit 073d248

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5d54defce478c0ffc01ab1199069623624ad2788
2+
refs/heads/master: 9bff2f25455ac781afecf09afe8d26653460601b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/vec.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,12 @@ impl extensions<T> for [const T] {
964964
#[doc = "Returns the number of elements that are equal to a given value"]
965965
#[inline]
966966
fn count(x: T) -> uint { count(self, x) }
967+
#[doc = "Iterates over a vector, with option to break"]
968+
#[inline]
969+
fn each<T>(f: fn(T) -> bool) { each(self, f) }
970+
#[doc = "Iterates over a vector's elements and indices"]
971+
#[inline]
972+
fn eachi<T>(f: fn(uint, T) -> bool) { eachi(self, f) }
967973
#[doc = "Reduce a vector from left to right"]
968974
#[inline]
969975
fn foldl<U: copy>(z: U, p: fn(U, T) -> U) -> U { foldl(z, self, p) }

0 commit comments

Comments
 (0)