Skip to content

Commit b80f6e4

Browse files
authored
Merge pull request #857 from mdavison/3sum-4sum
[Swift 4.2 Migration] 3Sum and 4Sum
2 parents ff780b6 + d4b9091 commit b80f6e4

File tree

6 files changed

+39
-0
lines changed

6 files changed

+39
-0
lines changed

3Sum and 4Sum/3Sum.playground/Contents.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// last checked with Xcode 10.1
2+
#if swift(>=4.2)
3+
print("Hello, Swift 4.2!")
4+
#endif
15

26
extension Collection where Element: Equatable {
37

3Sum and 4Sum/3Sum.playground/playground.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

3Sum and 4Sum/4Sum.playground/Contents.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// last checked with Xcode 10.1
2+
#if swift(>=4.2)
3+
print("Hello, Swift 4.2!")
4+
#endif
5+
16
extension Collection where Element: Equatable {
27

38
/// In a sorted collection, replaces the given index with a successor mapping to a unique element.

3Sum and 4Sum/4Sum.playground/playground.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)