def replicate_m_(monad_t, replications, monad_item): "Like replicateM, but discards the result." return sequence_(monad_t, func.replicate(monad_item, replications))
def replicate_m(monad_t, replications, monad_item): "Generalized replicate for monads. Preforms the action n times." return sequence(monad_t, func.replicate(monad_item, replications))