diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..9d33b89 Binary files /dev/null and b/.DS_Store differ diff --git a/cha.playground/Contents.swift b/cha.playground/Contents.swift new file mode 100644 index 0000000..77327e6 --- /dev/null +++ b/cha.playground/Contents.swift @@ -0,0 +1,32 @@ +import UIKit + +var arr = [1,2,3,4,5] +func arrmin(num:[Int]) -> Int { + + return num.min()! +} + +func arrmax(num:[Int]) -> Int { + + return num.max()! +} +print(arrmin(num: arr)) +print(arrmax(num: arr)) + + + +var arr2 = [3, 5, [5, 9, 0]] as [Any] + +for x in arr2 { + for num in [x] { + print(num) + } +} + +var word = "ehab" + +print(word.lowercased()) + + + + diff --git a/cha.playground/contents.xcplayground b/cha.playground/contents.xcplayground new file mode 100644 index 0000000..cf026f2 --- /dev/null +++ b/cha.playground/contents.xcplayground @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/cha.playground/playground.xcworkspace/contents.xcworkspacedata b/cha.playground/playground.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..ca3329e --- /dev/null +++ b/cha.playground/playground.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/cha.playground/playground.xcworkspace/xcuserdata/ehabhakmi.xcuserdatad/UserInterfaceState.xcuserstate b/cha.playground/playground.xcworkspace/xcuserdata/ehabhakmi.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..03d0b20 Binary files /dev/null and b/cha.playground/playground.xcworkspace/xcuserdata/ehabhakmi.xcuserdatad/UserInterfaceState.xcuserstate differ