Skip to content

Commit 3269b19

Browse files
committed
Remove use of (missing) HashMap.!?.
1 parent 21b4699 commit 3269b19

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docs/hash-map.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,12 @@ If you want to provide a default value if the key doesn't exist you can use:
241241

242242
For example::
243243

244-
import Data.HashMap.Strict ((!?))
245-
246244
HashMap.lookup 1 HashMap.empty
247245
> Nothing
248246

249247
HashMap.lookup 1 (HashMap.fromList [(1,"one"),(2,"two"),(3,"three")])
250248
> Just "one"
251249

252-
> (HashMap.fromList [(1,"one"),(2,"two"),(3,"three")]) !? 1
253-
> Just "one"
254-
255250
HashMap.lookupDefault "?" k HashMap.empty
256251
> "?"
257252

0 commit comments

Comments
 (0)