Calls a wrapped function in a container on this container.
(self, container)
| 421 | return Some(function(self._inner_value)) |
| 422 | |
| 423 | def apply(self, container): |
| 424 | """Calls a wrapped function in a container on this container.""" |
| 425 | if isinstance(container, Some): |
| 426 | return self.map(container.unwrap()) # type: ignore |
| 427 | return container |
| 428 | |
| 429 | def lash(self, function): |
| 430 | """Does nothing for ``Some``.""" |