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.51 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.50 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.49 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.48 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.47 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.46 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.45 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.44 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.43 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.42 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.41 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.40 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.39 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.38 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.37 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.36 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.35 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.34 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.33 tracks/pony/exercises/leap/example.pony
trackler-2.0.8.32 tracks/pony/exercises/leap/example.pony