Sha256: f21fc0d5482566e10f654cc4bcd1001772c2ae1e705311ae9d97a7ce93f92b6f
Contents?: true
Size: 569 Bytes
Versions: 66
Compression:
Stored size: 569 Bytes
Contents
module Raindrops exposing (raindrops) import String raindrops : Int -> String raindrops number = let drops = [ if number % 3 == 0 then "Pling" else "" , if number % 5 == 0 then "Plang" else "" , if number % 7 == 0 then "Plong" else "" ] result = String.join "" drops in if result == "" then toString number else result
Version data entries
66 entries across 66 versions & 1 rubygems