src/utils.lisp @ 4e226f02861b

Episode 12: Edge Handling (1)
author Steve Losh <steve@stevelosh.com>
date Sun, 17 Apr 2016 20:47:47 +0000
parents 21b9503510dc
children dcf7b53a54df
(in-package #:coding-math.utils)

(defun dividesp (n divisor)
  "Return whether `n` is evenly divisible by `divisor`."
  (zerop (mod n divisor)))