Skip to content

feat: Add SlicePrependInPlace#9

Merged
jentfoo merged 1 commit into
mainfrom
feat/SlicePrependInPlace
May 14, 2026
Merged

feat: Add SlicePrependInPlace#9
jentfoo merged 1 commit into
mainfrom
feat/SlicePrependInPlace

Conversation

@jentfoo
Copy link
Copy Markdown
Member

@jentfoo jentfoo commented May 14, 2026

SlicePrependInPlace will shift and prepend the element if the provided slice has capacity.

This PR closes #8 (new function to ensure the view does not change for the provided slice in SlicePrepend).

SlicePrependInPlace will shift and prepend the element if the provided slice has capacity.
@jentfoo jentfoo merged commit 78d5e1d into main May 14, 2026
11 checks passed
@jentfoo jentfoo deleted the feat/SlicePrependInPlace branch May 14, 2026 01:26
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.

SlicePrepend should avoid allocation when slice has capacity

1 participant