unfoldM package:list-t

Construct by unfolding a monadic data structure This is the most memory-efficient way to construct ListT where the length depends on the inner monad.