4 people like it.

FizzBuzz

Fizz

1: 
for i=0 to 99 do["";"Fizz"][i%3/2]+["";"Buzz"][i%5/4]|>max$"{i+1}"|>printfn"%s"
val i : int
val max : e1:'T -> e2:'T -> 'T (requires comparison)
Raw view Test code New version

More information

Link:http://fssnip.net/85H
Posted:2 years ago
Author:Evgeniy Andreev
Tags: buzz