|
5 years ago | |
---|---|---|
.. | ||
README.md | 5 years ago | |
SpaceAge.fs | 5 years ago | |
SpaceAge.fsproj | 5 years ago | |
SpaceAgeTests.fs | 5 years ago |
Given an age in seconds, calculate how old someone would be on:
31557600
secondsSo if you were told someone were 1,000,000,000 seconds old, you should be able to say that they’re 31.69 Earth-years old.
If you’re wondering why Pluto didn’t make the cut, go watch this youtube video.
To run the tests, run the command dotnet test
from within the exercise directory.
F# source code can be formatted with the Fantomas tool.
After installing it with dotnet tool restore
, run dotnet fantomas .
to format code within the current directory.
For more detailed information about the F# track, including how to get help if you’re having trouble, please visit the exercism.io F# language page.
Partially inspired by Chapter 1 in Chris Pine’s online Learn to Program tutorial. http://pine.fm/LearnToProgram/?Chapter=01