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

Js.Re.captures is recognized a curried function, whereby not compile

$
0
0

Hi, I am new to rescript. I have encounter a problem when trying to use Js.Re.captures with Option.map. I have attach an example below. The compiler complains that Js.Re.captures is a curried function, and it compiles after simply warping the original function. I believe there is nothing wrong with Js.Re.captures.

Thank you for reading.
Example


Viewing all articles
Browse latest Browse all 2592

Trending Articles