From ef02490a182970681d353d08292fb90c9ea37381 Mon Sep 17 00:00:00 2001 From: Ghada14133 <92754965+Ghada14133@users.noreply.github.com> Date: Tue, 8 Mar 2022 17:11:12 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index debb56b..fc40fe9 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ 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. @@ -21,7 +29,13 @@ 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. From 54357a8c65f064e15d9ea967e7043dd419ae02a9 Mon Sep 17 00:00:00 2001 From: Ghada14133 <92754965+Ghada14133@users.noreply.github.com> Date: Tue, 8 Mar 2022 17:11:58 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc40fe9..a32ce13 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,16 @@ Create a function that receives an integers array and returns the number that ap | (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. @@ -30,12 +33,17 @@ Create a function that receives a string then it converts uppercase letters into | 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.