Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[Suggestion] Boolean combinator operators #188

Open
Vidarls opened this issue Mar 21, 2016 · 1 comment
Open

[Suggestion] Boolean combinator operators #188

Vidarls opened this issue Mar 21, 2016 · 1 comment

Comments

@Vidarls
Copy link
Contributor

Vidarls commented Mar 21, 2016

I find myself combining different Freya<bool> computation quite frequently and I have made the following custom operators for myself:

let (<&>) = Freya.map2 (&&)
let (<||>) = Freya.map2 (||)

Might be useful to include as part of the standard operators?

@kolektiv
Copy link
Member

Yes, seemingly reasonable to me. I don't see why not! I'd probably make and = <&&> for consistency, but other than that, sure 😄 Would be happy to take a pull request if you get there before me!

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

No branches or pull requests

2 participants