This file contains 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 std.algorithm, std.conv, std.range, std.stdio; | |
// FizzBuzz from http://ideone.com/ciKtm | |
// I cannot port 'f <> b <|> n' | |
void main() | |
{ | |
auto fizz = cycle([null, null, "Fizz"]); | |
auto buzz = cycle([null, null, null, null, "Buzz"]); | |
auto nums = map!(to!string)(iota(1, 101)); |