Skip to content
Open

ehab #53

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
32 changes: 32 additions & 0 deletions cha.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -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())




4 changes: 4 additions & 0 deletions cha.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='ios' buildActiveScheme='true' importAppTypes='true'>
<timeline fileName='timeline.xctimeline'/>
</playground>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.