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

Function for getting arbitrary familial relationships #31

Open
LeaVerou opened this issue Apr 1, 2024 · 0 comments
Open

Function for getting arbitrary familial relationships #31

LeaVerou opened this issue Apr 1, 2024 · 0 comments

Comments

@LeaVerou
Copy link
Member

LeaVerou commented Apr 1, 2024

Currently we have methods for getting parents, children, ancestors (walkUp(), closest()), descendants (find(), walk()).
While the use cases for other relationships are more niche, they do exist (e.g. in Mavo we have things like getCousin() because we need it for finding the same note across repetitions of its parent item).

We definitely don't want to add functions like getCousin()! But I do wonder if there is something more general that might make sense here.

@LeaVerou LeaVerou changed the title Method for getting arbitrary familial relationships Function for getting arbitrary familial relationships Apr 1, 2024
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