Skip to content

Conversation

nathanl
Copy link
Contributor

@nathanl nathanl commented Mar 3, 2022

No description provided.

@josevalim
Copy link
Member

Can you please expand on use cases? I am wondering if this is worth a mailing list discussion. Especially because nowhere in Elixir we have pop with a function I think. And maybe this should be filter_first or something of sorts. Or filter_n?

@nathanl
Copy link
Contributor Author

nathanl commented Mar 3, 2022

For my specific use case, I'm testing equality, so the second element could be an item in the list. I just thought a function would be more generally useful.

@josevalim
Copy link
Member

I see. Let's go through the mailing list then, I would like to collect more feedback or perhaps generalize it. :)

@josevalim josevalim closed this Mar 3, 2022
@josevalim
Copy link
Member

And thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants