by predictionfutu · 1y ago · 0 comments
def bracket[A, T](ctor: () -> A, next: (a: A) -> T): T = val a = ctor(); try { return next(a) } finally { a.dispose() }
No comments yet.