graph TB
Closed-->|First|First
Closed-->|Second|Second
First-->|First|Closed
First-->|Second|Second
Second-->|First|First
Second-->|Second|Closed
style Closed fill:#222,color:#ffde00
Last active
April 14, 2022 07:37
-
-
Save RoyalIcing/e4998ec75a9db80e5cd741e5b0184204 to your computer and use it in GitHub Desktop.
Filter with toggling machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function* OpenFilter() { | |
function* Closed() { | |
yield on("First", First); | |
yield on("Second", Second); | |
} | |
function* First() { | |
yield on("First", Closed); | |
yield on("Second", Second); | |
} | |
function* Second() { | |
yield on("First", First); | |
yield on("Second", Closed); | |
} | |
return Closed; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment