Become a member
Sign in
Alex Liu
Alex Liu

Alex Liu

2 Following
2 Followers
  • Profile

Latest

Alex Liu
Alex Liu
Oct 25, 2018 · 2 min read

How to make a simple Post request with Smoke-Framework

Start

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

1

Alex Liu
Alex Liu
Sep 3, 2018 · 1 min read

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
}

1