Dates aren’t Strings
Make your life easier by using native data types wherever available.
Make your life easier by using native data types wherever available.
You probably don’t need the indices.
The reduce function can express almost anything, so it communicates almost nothing.
What getters and setters are for, and why you don’t need to manually write them in Swift.