close
The Wayback Machine - https://web.archive.org/web/20201013112545/https://github.com/raywenderlich/swift-algorithm-club/pull/812
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Swift 4.2] Updated QuickSort #812

Merged

Conversation

@laurentaylormarshall
Copy link
Contributor

@laurentaylormarshall laurentaylormarshall commented Oct 24, 2018

Checklist

Description

Updates the build settings to build with Swift 4.2 and removes the references to checking for Swift 4.0.

Removes unused import.
Refactors an if statement into a guard to be more Swift-y.
Removes unnecessarily explicitly defining the function as public.
Removes references to checking for Swift version 4.0.
Removes unused import.
@laurentaylormarshall laurentaylormarshall changed the title Swift4.2 migration [Swift 4.2] Updated QuickSort Oct 24, 2018
Copy link
Contributor

@richard-ash richard-ash left a comment

One small comment but otherwise looks good. Thanks for the update!

if i>=j {
return
}
func slowSort(_ i: Int, _ j: Int, _ numberList: inout [Int]) {

This comment has been minimized.

@richard-ash

richard-ash Oct 26, 2018
Contributor

Mind updating the indentation to 2 spaces? This function seems to be indented at 4 spaces.

This comment has been minimized.

@laurentaylormarshall

laurentaylormarshall Oct 26, 2018
Author Contributor

It's just in the README and it appears fine.
screen shot 2018-10-26 at 6 51 38 pm

This comment has been minimized.

@kelvinlauKL

kelvinlauKL Nov 28, 2018
Member

@laurentaylormarshall We have a convention where all code should be indented for 2-spaces, that example uses 4 spaced indents.

@richard-ash richard-ash merged commit 82494bf into raywenderlich:master Aug 29, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.