Functional implementation of FizzBuzz in different languages