#!/usr/local/bin/swift
extension Int {
  var fizzbuzz:String {
    switch(self % 3, self % 5) {
      case (0, 0): return "FizzBuzz"
      case (0, _): return "Fizz"
      case (_, 0): return "Buzz"
      default:     return String(self)
    }
  }
}
_=(1...30).map{ print($0.fizzbuzz) }