package melange

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Melange_ppx_lib.Ast_uncurry_genSource

Sourceval to_uncurry_fn : Melange_compiler_libs.Location.t -> Melange_compiler_libs.Ast_mapper.mapper -> Asttypes.arg_label -> Melange_compiler_libs.Parsetree.pattern -> Melange_compiler_libs.Parsetree.expression -> Melange_compiler_libs.Parsetree.expression_desc

function can only take one argument, that is the reason we did not adopt it syntax:

 fun [@bs] pat pat1-> body 

to_uncurry_fn (fun pat -> (fun pat1 -> ... body))

Sourceval to_method_callback : Melange_compiler_libs.Location.t -> Melange_compiler_libs.Ast_mapper.mapper -> Asttypes.arg_label -> Melange_compiler_libs.Parsetree.pattern -> Melange_compiler_libs.Parsetree.expression -> Melange_compiler_libs.Parsetree.expression_desc

syntax:

fun [@bs.this] obj pat pat1 -> body
OCaml

Innovation. Community. Security.