Skip to content

Instantly share code, notes, and snippets.

@RoyalIcing
Last active April 14, 2022 07:37
Show Gist options
  • Save RoyalIcing/e4998ec75a9db80e5cd741e5b0184204 to your computer and use it in GitHub Desktop.
Save RoyalIcing/e4998ec75a9db80e5cd741e5b0184204 to your computer and use it in GitHub Desktop.
Filter with toggling machine
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 
Loading
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