
The Swift Programming Language is a modern, clean and amazing tool to create extraordinary apps and algorithms. It is a part of bigger Apple Developer ecosystem where every person could create something awesome with ease!
However, conscious code design requires more knowledge than basic understanding of individual keywords. Discovering how something works under the hood is very often crucial in assimilating the paradigms of a given language.
The Swifty Measurement project is the answer to the question - What is the most efficient way to use Swift?
Please find a list of measurement cases below.
Language Paradigm
Higher Order Functions
Feel free to contribute into this project. It is the first release, so I would like to improve this repository but do not hesitate to propose some new content!
The idea came after inspiration gained by @twannl's post about simplifying algorithms and galijot_'s comment. I wrote then a short code to measure the execution time of the Swift code blocks. The goal was simple. I would like to know if the Higher Order Function map(_:)
is more effective with key path or closure parameter.