Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3633058

Browse files
committed
fixed for Xcode Version 6.3 beta 3
change Slice -> ArraySlice split required isSeparator: {...}
1 parent b77a89a commit 3633058

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎ExSwift/Array.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ internal extension Array {
12901290
return []
12911291
}
12921292

1293-
return Array(self[Range(start: start, end: end)] as Slice<T>)
1293+
return Array(self[Range(start: start, end: end)] as ArraySlice<T>)
12941294
}
12951295

12961296
/**

‎ExSwift/String.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public extension String {
9191
:returns: Array of substrings
9292
*/
9393
func explode (separator: Character) -> [String] {
94-
return split(self, { (element: Character) -> Bool in
94+
return split(self, isSeparator:{ (element: Character) -> Bool in
9595
return element == separator
9696
})
9797
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /