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

LowerUpperSwitch example, demonstrating switchB #137

Closed
wants to merge 1 commit into from
Closed

LowerUpperSwitch example, demonstrating switchB #137

wants to merge 1 commit into from

Conversation

DevJac
Copy link
Contributor

@DevJac DevJac commented Jun 20, 2016

This is an example I wrote to help myself understand switchB. An example like this would have helped me when I was learning (I'm having some trouble installing wx, so I found the command line examples especially useful).

If you want me to make any improvements before merging, let me know. Perhaps making it interactive like the other command line examples would be worthwhile?

@DavidEichmann
Copy link

Just a note: you can write:

lowerEvent = const toLowerBehavior <$> filterE ("lower" `isPrefixOf`) fireEvent

as

lowerEvent = toLowerBehavior <$ filterE ("lower" `isPrefixOf`) fireEvent

in general

const x <$> y == x <$ y

@DevJac DevJac closed this Aug 2, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants