elm-multiway-tree-zipper icon indicating copy to clipboard operation
elm-multiway-tree-zipper copied to clipboard

indexedMap doesn't need to return a Maybe

Open ccapndave opened this issue 9 years ago • 1 comments

Since mapListOverTree only returns Nothing if its list is empty, indexedMap builds a list based on the length of the tree, and a multiway tree always has at least one node I don't think there is any way for indexedMap to actually return Nothing.

ccapndave avatar Sep 20 '16 13:09 ccapndave

Yeah, your analysis seems correct. I'll look into cleaning it up. Thanks.

tomjkidd avatar Sep 20 '16 20:09 tomjkidd