2017å¹´03æ19æ¥16:30 ã«ãã´ãªevalparkOpen Source evalpark - Swiftå ¥åãã¾ãã ã¨ããããã§ããããã§ãã evalparkã«Swiftãå ¥åãã¾ããã #!/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) } Unfortunately lang/#swift of @freebsd ports is curre
{{#tags}}- {{label}}
{{/tags}}