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

Why partition instead of filter? #3

Open
cmeeren opened this issue Apr 1, 2019 · 1 comment
Open

Why partition instead of filter? #3

cmeeren opened this issue Apr 1, 2019 · 1 comment

Comments

@cmeeren
Copy link

cmeeren commented Apr 1, 2019

Just curious: Is there any reason you don't simply use filter instead of partition and snd?

Furl/Furl.fsx

Lines 23 to 24 in d2572d5

|> List.partition (fun (n, _) -> n = "Content-Type")
|> snd

@ploeh
Copy link
Owner

ploeh commented Apr 1, 2019

I don't know; I can't remember. Maybe it's just a mistake 😳 At least, it looks like one...

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

No branches or pull requests

2 participants