Back to Type Challenges

README

questions/21104-medium-findall/README.md

latest1.3 KB
Original Source
<!--info-header-start--><h1>FindAll </h1><blockquote><p>by tunamagur0 <a href="https://github.com/tunamagur0" target="_blank">@tunamagur0</a></p></blockquote><p><a href="https://tsch.js.org/21104/play" target="_blank"></a> </p><!--info-header-end-->

Given a pattern string P and a text string T, implement the type FindAll<T, P> that returns an Array that contains all indices (0-indexed) from T where P matches.

<!--info-footer-start-->

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