Slide 4
Slide 4 text
import Dict exposing (get, fromList)
findC n =
get n (fromList [ ( 1, 'a' ), ( 2, 'b' ), (3, 'c') ])
findS c =
get c (fromList [ ( 'a', "foo" ), ( 'b', "bar" ) ])
findM s =
get s
(fromList
[ ( "foo", "No bar here" )
, ( "bar", "You found the bar" )
]
)