Re: [swift-users] Generics with variable argument lists

2017-03-09 Thread Rien via swift-users
Ah!, yes that would be perfect! Many thanks! Regards, Rien Site: http://balancingrock.nl Blog: http://swiftrien.blogspot.com Github: http://github.com/Balancingrock Project: http://swiftfire.nl > On 09 Mar 2017, at 12:36, Ole Begemann wrote: > > On 09/03/2017 11:05, Rien via swift-users w

Re: [swift-users] Generics with variable argument lists

2017-03-09 Thread Ole Begemann via swift-users
On 09/03/2017 11:05, Rien via swift-users wrote: I am trying to achieve the following: enum FunctionResult { case success(T) case error(String) } func tester(test: (…) -> FunctionResult, onError: (String) -> T) -> T { … } The problem is of course the (…) that simply does not work. I wo

[swift-users] Generics with variable argument lists

2017-03-09 Thread Rien via swift-users
I am trying to achieve the following: enum FunctionResult { case success(T) case error(String) } func tester(test: (…) -> FunctionResult, onError: (String) -> T) -> T { … } The problem is of course the (…) that simply does not work. I would like to use this generic with a variety of diff