Skip to content

Deleting a cookie by name #8548

Answered by Dreamsorcerer
nortxort asked this question in Q&A
Jul 29, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

This to me sounds like it is removing more than one?

Well, yes, the predicate is used to filter which ones to delete.

There it sounds like only one Morsel will be removed.

The predicate is going to be called once for each Morsel.

This is a very standard approach seen across Python (e.g. the builtin filter() function).

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Dreamsorcerer
Comment options

@nortxort
Comment options

@Dreamsorcerer
Comment options

Answer selected by nortxort
Comment options

You must be logged in to vote
1 reply
@Dreamsorcerer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants