September 2017
Beginner to intermediate
396 pages
9h 46m
English
Create a new project work-with-map using the simple stack template.
executable working-with-map
hs-source-dirs: src
main-is: Main.hs
default-language: Haskell2010
build-depends: base >= 4.7 && < 5
, containers
module Main where
import Data.Map.Strict as M
main :: IO ()
main = do
let e = M.empty :: Map Int Int let s = M.singleton 1 "Haskell ...
Read now
Unlock full access