tracks/reasonml/exercises/space-age/src/Example.re in trackler-2.2.1.175 vs tracks/reasonml/exercises/space-age/src/Example.re in trackler-2.2.1.176
- old
+ new
@@ -6,21 +6,19 @@
| Jupiter
| Saturn
| Neptune
| Uranus;
-let earth_years = (seconds) => seconds /. 31557600.0;
+let earthYears = seconds => seconds /. 31557600.0;
-let rel_years =
+let relYears =
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)
-};
+let ageOn = (planet, seconds) => earthYears(seconds) /. relYears(planet);