Skip to content

Commit 9b72b7f

Browse files
authored
Merge pull request #543 from remlostime/brute-force-string-search-swift
[Swift 4] Update Brute Force String Search
2 parents ecef3c7 + 1baaac8 commit 9b72b7f

File tree

1 file changed

+5
-0
lines changed
  • Brute-Force String Search/BruteForceStringSearch.playground

1 file changed

+5
-0
lines changed

Brute-Force String Search/BruteForceStringSearch.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//: Playground - noun: a place where people can play
22

3+
// last checked with Xcode 9.0b4
4+
#if swift(>=4.0)
5+
print("Hello, Swift 4!")
6+
#endif
7+
38
extension String {
49
func indexOf(_ pattern: String) -> String.Index? {
510

0 commit comments

Comments
 (0)