Hence the existence of functions like :
func with<T>(_ initial: T, update: (inout T) throws -> ()) rethrows -> T {
var value = initial
try update(&value)
return value
}
Hence the existence of functions like :
func with<T>(_ initial: T, update: (inout T) throws -> ()) rethrows -> T {
var value = initial
try update(&value)
return value
}