How to make a simple Post request with Smoke-Framework
First of all, open terminal and create a new empty folder.
Create an executable package by running the following commands in the terminal:
swift package init - type executable
Currying in Swift — A good way generate similar functions
Sometime, we write some functions have similar meaning or the implementation among them are so similar.
Like we may do this:
func addOne(num: Int) -> Int { return num + 1}