Something went wrong. Try again.
How to define customize operator
Something went wrong. Try again.
185 B · 11 lines · Created 8mo ago
123456789101112#lang rhombus/static
operator (x ^ y): ~associativity: ~right ~stronger_than: + - * / math.expt(x, y) operator (x mod y): x - math.floor(x / y) * y
(16^32 - 1) mod 10 // 5