Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

extend OrderedSet with convenience methods ensure_at_front/end..#981

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dec1 wants to merge4 commits intokodecocodes:master
base:master
Choose a base branch
Loading
fromdec1:master

Conversation

dec1
Copy link

@dec1dec1 commentedJul 15, 2021
edited
Loading

…l eg in implementing a list of "recent documents"

Checklist

Description

  • Bugfix: Fails to insert at index 0 into empty container (off by one error)

  • For situations such as implementing a list of "recent documents" eg for text editor, it's necessary to maintain an ordered set, but with the additional capability of prepending/appending a new instance if the object doesn't yet exist in the set,or if it does, shifting the object to the front/back. This functionality has been added.
    Furthermore, the convenience methodcontains, which can be used by clients without requiring them to know the internal representation of the class, (anddebug_str useful for printing/debugging)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@dec1

[8]ページ先頭

©2009-2025 Movatter.jp