Skip to content

Commit 13ec9b0

Browse files
committed
Do the tabs vs spaces dance
1 parent 6e4a149 commit 13ec9b0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Swiftz/ArrayExt.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ public func find<T>(list : [T], f : (T -> Bool)) -> T? {
7676
/// splitAt(4, [1,2,3]) == ([1,2,3],[])
7777
/// splitAt(0, [1,2,3]) == ([],[1,2,3])
7878
public func splitAt<T>(index : Int, list : [T]) -> ([T], [T]) {
79-
switch index {
80-
case 0..<list.count:
81-
return (Array(list[0..<index]), Array(list[index..<list.count]))
82-
case list.count...Int.max:
83-
return (list, [T]())
84-
default:
85-
return ([T](), [T]())
86-
}
79+
switch index {
80+
case 0..<list.count:
81+
return (Array(list[0..<index]), Array(list[index..<list.count]))
82+
case list.count...Int.max:
83+
return (list, [T]())
84+
default:
85+
return ([T](), [T]())
86+
}
8787
}
8888

8989
/// Takes a separator and a list and intersperses that element throughout the list.

0 commit comments

Comments
 (0)