package ppx_matches
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
On This Page
  
  
  A syntax extension for Rust's `matches!` in OCaml ๐ช
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      ppx_matches-0.1.0.tbz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=201ed363af24391d72255967e9cb9df7c7519a0edcceea3ff89193082a3e2349
    
    
  sha512=94cccbfecc7634cc29be17d6848fb97847ee1d112da5bcf58d1d401667552a98beb684258694470d250a76a942f93b643cbabf1e71fbe76d01c248171f56202c
    
    
  Description
Published: 27 Oct 2025
README
๐ฅ ppx-matches
Install
This library has not yet been released to opam. To install it, first
opam install ppx_matchesUsers of dune can then use this PPX on their libraries and executables by adding the appropriate stanza field:
(library
 ...
 (preprocess (pps ppx_matches)))Syntax
In short:
[%matches? pat [when cond]]expands tofunction | pat [when cond] -> true | _ -> false[%matches? pat [when cond]] matcheeexpands to the inlined version:match matchee with | pat [when cond] -> true | _ -> false
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  On This Page