package Ġcom . free let ics . flow redux . dsl . flow Ċ Ċ import Ġcom . free let ics . flow redux . GetState Ċ import Ġcom . free let ics . flow redux . dsl . internal . Action Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . distinct Until Changed Ċ import Ġkotlinx . coroutines . flow . map Ċ Ċ internal Ġfun Ġ< S , ĠA > ĠFlow < Action < S , ĠA >> . map To IsIn State ( ĊĠĠĠ ĠisIn State : Ġ( S ) Ġ-> ĠBoolean , ĊĠĠĠ ĠgetState : ĠGet State < S >, Ċ ) Ġ: ĠFlow < Boolean > Ġ{ ĊĠĠĠ Ġreturn Ġmap Ġ{ ĠisIn State ( getState ()) Ġ} ĊĠĠĠĠĠĠĠ Ġ. distinct Until Changed () Ċ } Ċ