diff --git a/Linear Search/LinearSearch.playground/Contents.swift b/Linear Search/LinearSearch.playground/Contents.swift index 34e859fa3..436af2eda 100644 --- a/Linear Search/LinearSearch.playground/Contents.swift +++ b/Linear Search/LinearSearch.playground/Contents.swift @@ -1,10 +1,15 @@ //: Playground - noun: a place where people can play +// last checked with Xcode 4.0b4 +#if swift(>=4.0) +print("Hello, Swift 4!") +#endif + func linearSearch(_ array: [T], _ object: T) -> Int? { - for (index, obj) in array.enumerated() where obj == object { - return index - } - return nil + for (index, obj) in array.enumerated() where obj == object { + return index + } + return nil } let array = [5, 2, 4, 7] diff --git a/Linear Search/LinearSearch.playground/timeline.xctimeline b/Linear Search/LinearSearch.playground/timeline.xctimeline deleted file mode 100644 index bf468afec..000000000 --- a/Linear Search/LinearSearch.playground/timeline.xctimeline +++ /dev/null @@ -1,6 +0,0 @@ - - - - -