Y
Hacker News
new
|
ask
|
show
|
jobs
by
LyndsySimon
2827 days ago
chain_map.maps[0][key] = value
I wouldn't expect this to work because `0` is a valid key. It's not safe to assume that an integer lookup is an index.
1 comments
orf
2827 days ago
In his example maps is a list, no?
link