hotscript icon indicating copy to clipboard operation
hotscript copied to clipboard

feat(Tuples): add IndexOf

Open wdhwg001 opened this issue 1 year ago • 1 comments

Hi,

It's my first contribution to this repo, so please feel free to let me know if it doesn't follow any formatting / linting stuffs.

Basically it works like this:

type a = Call<T.IndexOf<2, [1, 2, 3]>> // 1
type b = Call<T.IndexOf<4, [1, 2, 3]>> // never

And it's particularly useful to be used with T.At.

wdhwg001 avatar Apr 17 '25 15:04 wdhwg001

@gvergnaud Sorry to bother but would you like to leave a review?

wdhwg001 avatar Sep 09 '25 07:09 wdhwg001