News for hackers. Stuff that matters.
Re:Why your first Rust FizzBuzz implementation may not work by minikomi on Monday October 13, 2014 @03:06AM (#8447761)
And racket, just for kicks

    #lang racket
    
    (define (fizz-buzz n)
      (match (list (modulo n 3) (modulo n 5))  
          [(list 0 0) "FizzBuzz"]
          [(list 0 _) "Fizz"]
          [(list _ 0) "Buzz"]
          [_          n]))
    
    (for [(i (range 100))]
      (displayln (fizz-buzz i)))

There are no comments on this comment yet.