Sha256: 823f8b1edfca98989d010f0848a19dfbecf81a3ad489df9ef755d0bc1bb95be9

Contents?: true

Size: 272 Bytes

Versions: 396

Compression:

Stored size: 272 Bytes

Contents

;;; leap.el --- Leap exercise (exercism)

;;; Commentary:

;;; Code:

(defun leap-year-p (year)
  "Determine if YEAR is a leap year."
  (and (= 0 (mod year 4))
       (or (not (= 0 (mod year 100)))
           (= 0 (mod year 400)))))

(provide 'leap)
;;; leap.el ends here

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.179 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.178 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.177 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.176 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.175 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.174 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.173 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.172 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.171 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.170 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.169 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.167 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.166 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.165 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.164 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.163 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.162 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.161 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.160 tracks/elisp/exercises/leap/example.el