Code Kata 4

Just a brief write up on code kata 4 Kata04: Data Munging - CodeKata where the task is to write a short program to pick up the smallest daily variation of temperature using a predetermined weather data table. The second task is to find smallest goal difference in a Premier league table. Third, and the final task is to write general solution to handle both cases.

Writing these solutions I learnt among other things: * How to make an HTTP request using Swift * How to use guard clauses * How to split and join strings to and from arrays * Enums in Swift

My solution is available at swiftkatas/Kata4/Kata4 at master ยท timokoola/swiftkatas

Mastodon