diff --git a/challenges/tr/solutions/tr_swift.playground/Contents.swift b/challenges/tr/solutions/tr_swift.playground/Contents.swift new file mode 100644 index 0000000..e8308ab --- /dev/null +++ b/challenges/tr/solutions/tr_swift.playground/Contents.swift @@ -0,0 +1,30 @@ +//: Playground - noun: a place where people can play + +import UIKit +func tr(from: String, to: String, test: String) -> String { + var fromArray = Array(from.characters) + var toArray = Array(to.characters) + let testArray = Array(test.characters) + var testDictionary: [String : String] = [:] + var newArray: [String] = [] + var result: String = "" + if fromArray.count != toArray.count { + return "Bad from/to string" + } + for char in 0.. + + + \ No newline at end of file diff --git a/challenges/tr/solutions/tr_swift.playground/playground.xcworkspace/contents.xcworkspacedata b/challenges/tr/solutions/tr_swift.playground/playground.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/challenges/tr/solutions/tr_swift.playground/playground.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/challenges/tr/solutions/tr_swift.playground/playground.xcworkspace/xcuserdata/margaretikeda.xcuserdatad/UserInterfaceState.xcuserstate b/challenges/tr/solutions/tr_swift.playground/playground.xcworkspace/xcuserdata/margaretikeda.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..0f1b88d Binary files /dev/null and b/challenges/tr/solutions/tr_swift.playground/playground.xcworkspace/xcuserdata/margaretikeda.xcuserdatad/UserInterfaceState.xcuserstate differ