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

Method bind_result

returns/io.py:873–875  ·  view source on GitHub ↗

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

(self, function)

Source from the content-addressed store, hash-verified

871 bind_ioresult = bind
872
873 def bind_result(self, function):
874 """Binds ``Result`` returning function to current container."""
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."""

Callers 1

test_bind_regular_resultFunction · 0.95

Calls 2

from_resultMethod · 0.45
unwrapMethod · 0.45

Tested by 1

test_bind_regular_resultFunction · 0.76