Skip to content

Commit dc49fdd

Browse files
committed
---
yaml --- r: 15239 b: refs/heads/try c: 9bff2f2 h: refs/heads/master i: 15237: c2a56ff 15235: 29f6daf 15231: 8e3ca68 v: v3
1 parent 9a33441 commit dc49fdd

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 5d54defce478c0ffc01ab1199069623624ad2788
5+
refs/heads/try: 9bff2f25455ac781afecf09afe8d26653460601b
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)