Sha256: db209eebea8939ec9d5b8770fad54d1c6fe673dd8527ecb479b42592dc8a4ff0

Contents?: true

Size: 136 Bytes

Versions: 396

Compression:

Stored size: 136 Bytes

Contents

(ns leap)

(defn leap-year? [year]
  (let [[p c s] (map #(= 0 (rem year %1)) [4 100 400])]
    (or (and p (not c))
        (and c s))))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.97 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.96 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.95 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.94 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.93 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.92 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.91 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.90 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.89 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.88 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.87 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.86 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.85 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.84 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.83 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.82 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.81 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.80 tracks/clojure/exercises/leap/src/example.clj
trackler-2.2.1.79 tracks/clojure/exercises/leap/src/example.clj