CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2018-04-07-134131-haskell.ipynbOpen in CoCalc

Examples for support purposes...

2 + 3
(+) 2 3
5
putStrLn "Hello from CoCalc"
Hello from CoCalc
primesTo m = eratos [2..m]               
    where
    eratos []     = []
    eratos (p:xs) = p : eratos (xs `minus` [p, p+p..])
primesTo 10
<interactive>:3:5-22: Non-exhaustive patterns in function eratos