Skip to content

Add split(at:) methods to PathComponent and Path, Fixes issue #20#123

Draft
hfutrell wants to merge 1 commit into
masterfrom
worktree-issue20wolf
Draft

Add split(at:) methods to PathComponent and Path, Fixes issue #20#123
hfutrell wants to merge 1 commit into
masterfrom
worktree-issue20wolf

Conversation

@hfutrell
Copy link
Copy Markdown
Owner

PathComponent gains split(at: [IndexedPathComponentLocation]) which splits a component at multiple locations and returns the pieces in order. Path gains split(at: IndexedPathLocation) which splits a path at a single location, returning a (before, after) tuple. Together these let callers split an open path at intersection points — the core request in issue #20.

PathComponent gains split(at: [IndexedPathComponentLocation]) which splits a
component at multiple locations and returns the pieces in order. Path gains
split(at: IndexedPathLocation) which splits a path at a single location,
returning a (before, after) tuple. Together these let callers split an open
path at intersection points — the core request in issue #20.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant