Back to Type Challenges

README

questions/04471-medium-zip/README.md

latest1.2 KB
Original Source
<!--info-header-start--><h1>Zip </h1><blockquote><p>by キリサメ qianxi <a href="https://github.com/qianxi0410" target="_blank">@qianxi0410</a></p></blockquote><p><a href="https://tsch.js.org/4471/play" target="_blank"></a> </p><!--info-header-end-->

In This Challenge, You should implement a type Zip<T, U>, T and U must be Tuple

ts
type exp = Zip<[1, 2], [true, false]> // expected to be [[1, true], [2, false]]
<!--info-footer-start-->

<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/4471/answer" target="_blank"></a> <a href="https://tsch.js.org/4471/solutions" target="_blank"></a> <!--info-footer-end-->