Skip to content

Instantly share code, notes, and snippets.

@mattrob33
Last active Mar 9, 2022
Embed
What would you like to do?
val movie: StateFlow<Movie> = ...
val title: StateFlow<String> = movie.mapState { it.title }
val cast: StateFlow<List<Actor>> = movie.mapState { getCast(it) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment