Skip to content

Fix val_at returning the focus value for a dangling child - #106

Merged
luketpeterson merged 2 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/val-at-dangling-child
Sep 17, 2026
Merged

luketpeterson merged 2 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/val-at-dangling-child

Conversation

@imlvts

@imlvts imlvts commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

TrieRef lookups stepped into a child node even when that consumed the whole path, and an empty remaining path answers with the focus value. Only step into the child when path remains.

TrieRef lookups stepped into a child node even when that consumed the
whole path, and an empty remaining path answers with the focus value.
Only step into the child when path remains.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019R2H8fnco29asY2v3TPbtF
@imlvts

imlvts commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator Author

https://github.com/Adam-Vandervorst/PathMap/actions/runs/35157988323#summary-105006282703

Benchmark: +27.3% binary_zipper_iter/50. doesn't seem to be noise, but doesn't affect overall benchmark results?

@luketpeterson
luketpeterson merged commit d9e5ec2 into Adam-Vandervorst:master Sep 17, 2026
3 of 4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants