Skip to content
Open
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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ Create a function that receives an integers array and returns the number that ap
| (1,1,2) | 2 |
| (2,2,1) | 1 |

answer:

```

func move() -> [Int]{
let num : Int
if var number == num {
print(num)
}
}
```

## 2nd Challenge
Create a function that receives a string then it converts uppercase letters into lowercase and vice versa. The function then should print the converted value.
Expand All @@ -21,6 +32,17 @@ Create a function that receives a string then it converts uppercase letters into
| My name is Ali | mY NAME IS aLI |
| sHroog | ShROOG |

answer:

```

func converse() -> (String) {
let letter : String
if let letter == String.uppercased(<#T##self: String##String#>){

}
}
```

## 3rd Challenge
Create a function that receives an array of items & arrays and returns one flattened array with all items exluding null values.
Expand Down