Youssef Shoaib [MOD]
01/13/2024, 10:23 PMNathan Bedell
03/02/2024, 5:55 PMNathan Bedell
03/02/2024, 7:09 PMNathan Bedell
03/03/2024, 3:26 PMStateFlow
, sure -- but I don't think it easily extends to a comprehension syntax for List
or list-like monads.
You can definitely take two lists as input, put them into a flow, and attempt to use collectAsState
to "bind" the list elements to a concrete list -- yet the results are not what you'd expect form the standard list monad.
Rather than enumerating all possibilities like you'd want in the list monad, you're essentially temporally interpolating between the different list elements you collectAsState
.
Perhaps there's a less obvious way to make this work, but at least in the naive implementation I tried out, it doesn't work.Youssef Shoaib [MOD]
03/03/2024, 4:06 PMChannel
based thing could be more helpfulYoussef Shoaib [MOD]
04/24/2024, 6:47 PM