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

+kids:of should probably return an axal #137

Open
bonbud-macryg opened this issue Sep 19, 2024 · 0 comments
Open

+kids:of should probably return an axal #137

bonbud-macryg opened this issue Sep 19, 2024 · 0 comments

Comments

@bonbud-macryg
Copy link

+kids is the only arm in the +of core that returns an +axil rather than an +axal. This makes it hard to get a map-like subtree from the shrub's kids or deps without doing something like ~(tar of:neo (~(del of:neo q:(~(got by deps.bowl) %src)) /))), which could just be ~(kids of:neo q:(~(got by deps.bowl) %src)).

I naively tried changing this but hit error -find.kid.fat when I tried to run +tar:of on the output of +kids:of, suggesting that its output wasn't an axal.

It's worth noting that there are two +kids:of arms in /sur/neo.hoon. Changing either or both of these arms to return an +axal resulted in the error above.

I asked Liam if there was a reason +kids:of returns an +axil and he couldn't recall.

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

No branches or pull requests

1 participant