class KeyError < IndexError
A key that is not there: Hash#[] with a missing key, as fetch does in
Ruby (Hash#[]? returns nil instead).
v = {a: 1}[:b] # raises KeyError
<prelude>:5281
class KeyError < IndexErrorA key that is not there: Hash#[] with a missing key, as fetch does in
Ruby (Hash#[]? returns nil instead).
v = {a: 1}[:b] # raises KeyError
<prelude>:5281