PipeFirst with anonymous functions?


#1

It looks like PipeFirst does not support anonymous functions? This kind of a silly example but

let data = [1,2,3];
data -> Js.log; /* ok */
data -> (myList) => Js.log(myList); /* syntax error */

Just curious if there is an ocaml constraint or historical cause for that, or maybe I just got the syntax wrong?


#2

It’s a known issue, Bob says he fixed it: https://stackoverflow.com/q/55793340/20371


#3

Awesome! thanks