Sha256: 5b00ad4afd20c2822c52c5bca3fc96311f4c3f4297f9d50a8b3208fd8e6a0313

Contents?: true

Size: 146 Bytes

Versions: 364

Compression:

Stored size: 146 Bytes

Contents

module Leap where

import Prelude

isLeapYear :: Int -> Boolean
isLeapYear year =
  mod year 4 == 0 &&
  mod year 100 /= 0 ||
  mod year 400 == 0

Version data entries

364 entries across 364 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.179 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.178 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.177 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.176 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.175 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.174 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.173 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.172 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.171 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.170 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.169 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.167 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.166 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.165 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.164 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.163 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.162 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.161 tracks/purescript/exercises/leap/examples/src/Leap.purs
trackler-2.2.1.160 tracks/purescript/exercises/leap/examples/src/Leap.purs