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

yampa: Simplify FRP.Yampa.Task.isEdge #287

Closed
ivanperez-keera opened this issue Feb 9, 2024 · 0 comments
Closed

yampa: Simplify FRP.Yampa.Task.isEdge #287

ivanperez-keera opened this issue Feb 9, 2024 · 0 comments
Assignees
Milestone

Comments

@ivanperez-keera
Copy link
Owner

ivanperez-keera commented Feb 9, 2024

The auxiliary function FRP.Yampa.Task.isEdge can be simplified by changing the order or cases:

isEdge (Left _) (Left _) = Nothing
isEdge (Left _) (Right c) = Just c
isEdge (Right _) (Right _) = Nothing
isEdge (Right _) (Left _) = Nothing

@ivanperez-keera ivanperez-keera self-assigned this Feb 9, 2024
@ivanperez-keera ivanperez-keera added this to the 0.14.7 milestone Feb 9, 2024
ivanperez-keera added a commit that referenced this issue Feb 9, 2024
Simplify the definition of FRP.Yampa.Task.isEdge by changing the order
of cases in the definition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant