I don't know whether somebody mentioned it already but for a partial application of a throwing func no try
is necessary for the let
in actual Swift:
func f() throws -> Int { 42 }
let f1 = f // no try or throws here
try f1()
I don't know whether somebody mentioned it already but for a partial application of a throwing func no try
is necessary for the let
in actual Swift:
func f() throws -> Int { 42 }
let f1 = f // no try or throws here
try f1()