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.0.8.10 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.9 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.8 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.7 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.6 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.5 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.4 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.3 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.2 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.1 tracks/pony/exercises/leap/example.pony
trackler-2.0.7.0 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.44 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.43 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.42 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.41 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.40 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.39 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.38 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.37 tracks/pony/exercises/leap/example.pony
trackler-2.0.6.36 tracks/pony/exercises/leap/example.pony