Occasionally I want to write: def fn[T](t: (T, T)): T = t match { case (x, `x`) => x case _ => //... } But it won't happen. ;)
-
-
Replying to @propensive
@propensive "... case (x, y) if x == y ... " is bearable.1 reply 0 retweets 0 likes -
Replying to @propensive
@propensive I see. You want to reference ids bound in the same pattern. Left-to-right? Looks a bit hacky to me, but YMMV.1 reply 0 retweets 0 likes
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.