Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法做到这一点:
public <A, B> B pipe(A a)
这样我就可以验证链式方法调用的类型,以获得:
pipe<A, B> --> pipe<B, C> --> pipe<C, D> -->
pipe<A, B> -->
pipe<B, C> -->
pipe<C, D> -->
有任意数量的pipe()电话?
pipe()
或者这是不可能的?