Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

fixed a bug I reported in issue #4 also upgraded to PureScript 0.12#5

Open
dwhitney wants to merge 4 commits into
dmbfm:masterfrom
dwhitney:master
Open

fixed a bug I reported in issue #4 also upgraded to PureScript 0.12#5
dwhitney wants to merge 4 commits into
dmbfm:masterfrom
dwhitney:master

Conversation

@dwhitney
Copy link
Copy Markdown

Hey, I really enjoy using this library, and I found a bug, needed it fixed, and thought I could add a couple of functions that others might want too:

The bug was where findFromRoot would not find some nodes because findDown was not exhaustively searching siblings. To fix this I created a couple of new functions called findDownWhere and findUpWhere that will exhaustively search in their respective ways and they differ from findDown and findUp by taking a predicate (something I needed and thought would be helpful for others). This fixed the original issue findFromRoot had. I also rewrote findUp and findDown in terms of their predicate-taking counterparts. I also added several tests to check my work.

@dwhitney dwhitney changed the title fixed a bug I reported in issue #4 fixed a bug I reported in issue #4 also upgraded to PureScript 0.12 Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant