Created
April 22, 2012 19:05
-
-
Save catamorphism/2466203 to your computer and use it in GitHub Desktop.
issue 2185
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import iter::*; | |
fn main() { | |
let range = bind uint::range(0u, 1000u, _); | |
let filt = bind iter::filter(range, | |
{|&&n: uint| n % 3u != 0u && n % 5u != 0u }, _); | |
let sum = iter::foldl(filt, 0u) {|accum, &&n: uint| 5u }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment