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 I was more thinking about getting a method reference from an operator. For example, I can write Int.successor but not Int.+ or +
-
-
-
@Callionica@mjtsai You can also enclose the operator in parens, like Haskell: let plus: (Int, Int) -> Int = (+) -
-
-
@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
Callionica