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

Remove "times" integer extension #26

Closed
waynewbishop opened this issue Mar 10, 2015 · 2 comments
Closed

Remove "times" integer extension #26

waynewbishop opened this issue Mar 10, 2015 · 2 comments
Assignees

Comments

@waynewbishop
Copy link
Owner

Hi Richard;

Just making some notes. When refactoring the merge sort it looks like we can also remove this extension as well.

extension Int {

    //iterates the closure body a specified number of times
    func times(closure:(Int)->Void) {
        for i in 0...self {
            closure(i)
        }
    }

}
@waynewbishop
Copy link
Owner Author

After review this I've decided to keep this in the code as is. It's a really neat function that could be utilized in other areas.

@voidet
Copy link
Collaborator

voidet commented Jun 18, 2015

Great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants