Sha256: 35f462627c048ef4f54b15dc171155cedbe632c6e4d06d0298be6f80abf8ecf2
Contents?: true
Size: 450 Bytes
Versions: 16
Compression:
Stored size: 450 Bytes
Contents
type planet = | Mercury | Venus | Earth | Mars | Jupiter | Saturn | Neptune | Uranus; let earth_years = (seconds) => seconds /. 31557600.0; let rel_years = fun | Mercury => 0.2408467 | Venus => 0.61519726 | Earth => 1. | Mars => 1.8808158 | Jupiter => 11.862615 | Saturn => 29.447498 | Uranus => 84.016846 | Neptune => 164.79132; let age_on = (planet, seconds) => { earth_years(seconds) /. rel_years(planet) };
Version data entries
16 entries across 16 versions & 1 rubygems