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.31 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.30 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.29 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.28 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.27 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.26 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.24 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.23 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.22 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.21 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.20 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.19 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.18 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.17 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.16 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.15 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.14 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.13 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.12 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.11 tracks/pony/exercises/leap/example.pony