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

Remove object from list#7724

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

Draft
ejm01 wants to merge6 commits intomaster
base:master
Choose a base branch
Loading
fromem/remove-object-from-list
Draft

Conversation

@ejm01
Copy link
Contributor

@ejm01ejm01 commentedMar 28, 2022
edited
Loading

Adds a list remove method which takes an object instead of an index.
Related:#7663

@cla-botcla-botbot added the cla: yes labelMar 28, 2022
*/
publicfunc remove(_ object:Element){
guardlet index=self.index(of: object)else{
throwRealmException("Object does not exist in List") // ???: Is this too harsh? Should method just return a bool or something?
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Is an exception much? Should nothing happen if the object isn't present?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@Naveen-C-RamachandrappaNaveen-C-RamachandrappaNaveen-C-Ramachandrappa approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ejm01@Naveen-C-Ramachandrappa

[8]ページ先頭

©2009-2025 Movatter.jp