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.139 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.138 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.137 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.136 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.135 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.134 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.133 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.132 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.131 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.130 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.129 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.128 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.127 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.126 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.125 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.124 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.123 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.122 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.121 tracks/elisp/exercises/leap/example.el
trackler-2.2.1.120 tracks/elisp/exercises/leap/example.el