Skip to content

Commit

Permalink
Updated SetCover to Swift 4
Browse files Browse the repository at this point in the history
Updated to Swift 4 and Xcode 9.0b4. No changes necessary.
  • Loading branch information
bobdel committed Jul 31, 2017
1 parent b6c7f6d commit 713bf52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Set Cover (Unweighted)/SetCover.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SetCover

// last checked with Xcode 9.0b4
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

let universe1 = Set(1...7)
let array1 = randomArrayOfSets(covering: universe1)
let cover1 = universe1.cover(within: array1)
Expand Down

0 comments on commit 713bf52

Please sign in to comment.