def initialize_plugins(rplugins: List[ActiveRplugin]) -> Do: prefixes = rplugins.map(lambda a: camelcase(a.name)) yield prefixes.traverse(await_poll, NvimIO) yield Lists.range(1, 6).traverse(init_stage(prefixes), NvimIO) return Nil
def replace_one(self) -> None: l = Lists.range(102) index = 100 pred = lambda a: a == index l1 = replace_one(l, pred, 23)._value() l1.flat_map(__.lift(index)).should.just_contain(23)