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