Sha256: c53ec2ca67e6e94206e1798f90286709cacb5d3c2b877f4a76a66335fc6ac415

Contents?: true

Size: 177 Bytes

Versions: 165

Compression:

Stored size: 177 Bytes

Contents

primitive Leap
  fun apply(year: USize): Bool =>
    let has_factor = {(n: USize)(year): Bool => (year % n) == 0}
    has_factor(4) and (not has_factor(100) or has_factor(400))

Version data entries

165 entries across 165 versions & 1 rubygems

Version Path
trackler-2.2.1.13 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.12 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.11 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.10 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.9 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.8 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.7 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.6 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.5 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.4 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.3 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.2 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.1 tracks/pony/exercises/leap/example.pony
trackler-2.2.1.0 tracks/pony/exercises/leap/example.pony
trackler-2.2.0.6 tracks/pony/exercises/leap/example.pony
trackler-2.2.0.5 tracks/pony/exercises/leap/example.pony
trackler-2.2.0.4 tracks/pony/exercises/leap/example.pony
trackler-2.2.0.3 tracks/pony/exercises/leap/example.pony
trackler-2.2.0.2 tracks/pony/exercises/leap/example.pony
trackler-2.2.0.1 tracks/pony/exercises/leap/example.pony