~jojo/Carth

0eaf686d8e4dec895a68677ba673fd1957afde3b — JoJo 1 year, 1 month ago 60e7fc8
std: Make divisible? work on other integer types as well
1 files changed, 1 insertions(+), 1 deletions(-)

M std/math.carth
M std/math.carth => std/math.carth +1 -1
@@ 21,7 21,7 @@
(define not (fmatch (case True False)
                    (case False True)))

(define (divisible? n m) (= (rem n m) 0))
(define (divisible? n m) (= (rem n m) (cast 0)))

(define (powi x y)
  (define (go acc x y)