Join Exercism’s PureScript Track for access to 31 exercises with automatic analysis of your code and personal mentoring, all 100% free.
module HelloWorld where
import Prelude
import Data.Maybe (Maybe(..))
helloWorld :: Maybe String -> String
helloWorld Nothing = "Hello, World!"
helloWorld (Just x) =
"Hello, " <> x <> "!"
Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.
Change the data format for scoring a game to more easily add other languages.
Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.