Assumes any mapping function to an iterator type creates a "traversable"
Assumes any mapping function to an iterator type creates a "traversable"
This method can be used to extract from a ManagedResource some value while mapping/flatMapping.
This method can be used to extract from a ManagedResource some value while mapping/flatMapping. e.g.
val x : ManagedResource[Foo] val someValue : Option[SomeValue] = x.flatMap( foo : Foo => foo.getSomeValue )(extractOption)
This method can be used to extract from a ManagedResource some value while mapping/flatMapping.
This method can be used to extract from a ManagedResource some value while mapping/flatMapping. e.g.
val x : ManagedResource[Foo] val someValue = x.flatMap( foo : Foo => foo.getSomeValue )(extractUnManaged)
This translate method converts from ManagedResource to ExtractableManagedResource, keeping the processed result inside the managed monad.
This translate method converts from ManagedResource to ExtractableManagedResource, keeping the processed result inside the managed monad.
This companion object contains implicits used on ManagedResource map calls.