Closed radix closed 8 years ago
Good suggestion. I've added lazyGridMapIndexed
, but I modified the function so that it will never add keys to the map that aren't valid grid indices.
@mwhombat - oh, I'm sorry I overlooked that. Thanks you very much!
It seemed weird that lazyGridMap didn't let you specify the keys to go along with the values -- and also that the Show instance for LGridMap didn't show those keys, either. So here is lazyGridMapIndexed. I don't know if that's a good name -- if you have suggestions I can make changes to the PR.