File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: dfdca5d538d9cb89f50f0d9bdd8f9ba649c1c788
5
+ refs/heads/try: f2a60a6b0206297326b190a0421a9685d2b5e7ab
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import iter::*;
2
2
3
3
fn main ( ) {
4
4
let range = bind uint:: range ( 0 u, 1000 u, _) ;
5
- let filt = bind iter:: filter ( range, { |& & n: uint | n % 3 u != 0 u && n % 5 u != 0 u } , _) ;
6
- let sum = iter:: foldl ( filt, 0 u) { |accum, & & n: uint | accum + n } ;
5
+ let filt = bind iter:: filter ( range, { |& & n: uint |
6
+ n % 3 u != 0 u && n % 5 u != 0 u } , _) ;
7
+ let sum = iter:: foldl ( filt, 0 u) { |accum, & & n: uint | accum + n } ;
7
8
8
9
io:: println ( #fmt ( "%u" , sum) ) ;
9
10
}
You can’t perform that action at this time.
0 commit comments