Swift generics: copying and pasting my code for T? so that it can also work for [T], instead of writing it once with id.
-
-
@jckarter Aha, I was used to the way Python does it. Good to know. Can you do that with an operator or only a named method? - View other replies
-
@mjtsai The way method references are "curried" means you'd need a separate overload for => taking (T, U) -> V functions… -
@jckarter I was more thinking about getting a method reference from an operator. For example, I can write Int.successor but not Int.+ or + - View other replies
-
@mjtsai I see. Currently operators are always top-level fns, though there are proposals in flight to change that.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Michael Tsai
Joe Groff