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

Variation of switch for getting an event inside a signal? #36

Open
nilsbecker opened this issue Nov 19, 2021 · 2 comments
Open

Variation of switch for getting an event inside a signal? #36

nilsbecker opened this issue Nov 19, 2021 · 2 comments

Comments

@nilsbecker
Copy link

I was looking for something like S.switch or E.switch but for an 'a event signal. So basically fun sig_of_events -> sig_of_events |> S.changes |> E.switch E.never. Is this available in some form directly? Is it a bad idea for some reason?

@nilsbecker
Copy link
Author

ah i see that Note has it. would you recommend Note for new projects currently? is there a use case where Note is a bad idea?

@nilsbecker
Copy link
Author

nilsbecker commented Nov 19, 2021

actually, in the snippet above, will the events occuring in initial value of sig_of_events be seen? or is the initial value lost in S.changes?

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

1 participant