1 Answer 1
Reason syntax for modulus is "mod".
Js.log(20 mod 2)
glennsl
29.2k12 gold badges60 silver badges80 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
glennsl
Documented here: reasonml.github.io/api/Pervasives.html#VAL(mod). The parentheses means it's an infix operator definition.