Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

What is _ and ...?

$
0
0

i don’t really get the difference… i can do

...->Array.map(fn(x, _))

as well as

...->Array.map(fn(x, ...))

but what’s the actual difference here? also, why does … only work in the slot? should i prefer one or the other? what are their purposes?


Viewing all articles
Browse latest Browse all 2592

Trending Articles