Skip to content

Instantly share code, notes, and snippets.

Last active Mar 9, 2022
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