Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: import/path: LINQ/Lambda style filter/find/sort etc... #71079

Closed
AJLProjects opened this issue Jan 1, 2025 · 1 comment
Closed
Labels
Milestone

Comments

@AJLProjects
Copy link

AJLProjects commented Jan 1, 2025

Proposal Details

// produces "apple"
aItem := myFoods.find(e=>e.contains("a"))

// produces ["apple", "anchovies"]
aItems := myFoods.filter(e=>e.contains("a"))

This would be a blessing if we could have single line searches, it would make the code expression concise.

@gopherbot gopherbot added this to the Proposal milestone Jan 1, 2025
@seankhliao
Copy link
Member

Duplicate of #21498

@seankhliao seankhliao marked this as a duplicate of #21498 Jan 1, 2025
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants