MCPcopy Index your code
hub / github.com/dry-python/returns / bind_io

Method bind_io

returns/io.py:877–879  ·  view source on GitHub ↗

Binds ``IO`` returning function to current container.

(self, function)

Source from the content-addressed store, hash-verified

875 return self.from_result(function(self._inner_value.unwrap()))
876
877 def bind_io(self, function):
878 """Binds ``IO`` returning function to current container."""
879 return self.from_io(function(self._inner_value.unwrap()))
880
881 def lash(self, function):
882 """Does nothing for ``IOSuccess``."""

Callers

nothing calls this directly

Calls 2

from_ioMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected