库代码本来就是让别人用着爽,实现起来很麻烦,这样也很正常。
另外这一坨代码在Scala3.2之后用两行代码就搞定了:
// after scala 3.2
extension[F, T, R] (f: F)(using util.TupledFunction[F, T => R])
def willBe(a: Answered.type): AnsweredBy[R] = AnsweredBy[R]()
【 在 hongyan2022 的大作中提到: 】
: 这种东西 文字都发不出来 只能上图
: [upload=1][/upload]
--
修改:bsxfun FROM 183.192.18.*
FROM 183.192.18.*