How to create an uncurried function with ppxlib.metaquot?

Or how is it represented in OCaml AST?

Ok, Obj.magic worked for me :smile:

But it’s still interesting to know the answer.

Not sure you can with metaquot. I use metaquot in the RescriptRelay PPX, and I postprocess the AST generated by metaquot. Please note this is a pretty dumb transform that doesn’t care about arity: