This project aims to be the Scala Incubator project for Automatic-Resource-Management in the scala library
ManagedResource.sequence
though
T[ManagedResource[U]]
to ManagedResource[T[U]]
for T <: Traversable
. However, this method relies on foldLeft
and flatMap
. This leads to StackOverflowError
if the input is too long. Do you know of any better way to do this?
case class ManagedResourceSequence[a](resource: Seq[a])
. Do you see any problems with this?