reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.09k stars 424 forks source link

User defined index operators #2643

Closed EduardoRFS closed 1 week ago

EduardoRFS commented 3 years ago

Currently there is no way to define index operators in Reason only in OCaml, which is a feature available since 4.06

https://ocaml.org/manual/indexops.html

let ( .%{} ) = (tabl, index) => find(tabl, index)
anmonteiro commented 1 week ago

Duplicate of #2432