Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added is{scalar,value,..}. Fixes leaf_paths bug. Leaf paths #1701

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alex-ozdemir
Copy link
Contributor

This was originally PR #1178, but I needed to move this to its own branch, so I closed the old PR.

Now paths to `false` leaves are correctly returned.
Added the test new functions to the docs.
There are a few reasonable ways recurse could behave. The standard
libraries implemntation does the following:

`recurse(f;cond)` yields ., then . | f if . | f satisfies cond, then
                                 . | f | f if . | f | f satisfies cond,
                                 etc...

But it turns out that for paths, you want the following behavior:
`recurse(f;cond)` yields ., then . | f is . satisfies cond, then
                                 . | f | f if . | f satisfies cond,
                                 etc.

The difference is non-trivial (and there are actually a few degrees of
freedom here), so I gave paths its own definition, rather than adding a
new builtin. This means we don't have two builtin recurses floating
around.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 84.554% when pulling cc573c4 on alex-ozdemir:leaf-paths into 90bc29c on stedolan:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants