diff --git a/Functional Programming/Building Maps/Exercise 1/task.md b/Functional Programming/Building Maps/Exercise 1/task.md index d83344f8..d742b19c 100644 --- a/Functional Programming/Building Maps/Exercise 1/task.md +++ b/Functional Programming/Building Maps/Exercise 1/task.md @@ -2,4 +2,4 @@ Implement a function named `demographic(people: List)` returning a `Map` where the key is age and the value is a list of names of people of that -age. \ No newline at end of file +age. diff --git a/Functional Programming/Building Maps/Exercise 2/task.md b/Functional Programming/Building Maps/Exercise 2/task.md index 46cb8645..61eaa0cc 100644 --- a/Functional Programming/Building Maps/Exercise 2/task.md +++ b/Functional Programming/Building Maps/Exercise 2/task.md @@ -1,3 +1,3 @@ ## Building Maps (#2) -Implement `groupBy()` using `getOrPut()`. \ No newline at end of file +Implement `groupBy()` using `getOrPut()`. diff --git a/Functional Programming/Building Maps/Exercise 3/task.md b/Functional Programming/Building Maps/Exercise 3/task.md index 0d5c49a3..6e7e1ba3 100644 --- a/Functional Programming/Building Maps/Exercise 3/task.md +++ b/Functional Programming/Building Maps/Exercise 3/task.md @@ -2,4 +2,4 @@ Implement `associateBy(keySelector: (T) -> R)` using `groupBy()`. If two elements have the same key produced by `keySelector` then the last one should -be added to the `Map`. \ No newline at end of file +be added to the `Map`. diff --git a/Functional Programming/Folding Lists/Exercise 1/task.md b/Functional Programming/Folding Lists/Exercise 1/task.md index b395b2d8..69f86439 100644 --- a/Functional Programming/Folding Lists/Exercise 1/task.md +++ b/Functional Programming/Folding Lists/Exercise 1/task.md @@ -1,4 +1,4 @@ ## Folding Lists (#1) Use `fold()` to finish the implementation of `size()` given in the starter -code. `size()` returns the number of elements in a `List`. \ No newline at end of file +code. `size()` returns the number of elements in a `List`. diff --git a/Functional Programming/Folding Lists/Exercise 2/task.md b/Functional Programming/Folding Lists/Exercise 2/task.md index 1c6896a1..581a70b2 100644 --- a/Functional Programming/Folding Lists/Exercise 2/task.md +++ b/Functional Programming/Folding Lists/Exercise 2/task.md @@ -1,3 +1,3 @@ ## Folding Lists (#2) -Finish implementing `count()`, given in the starter code, using `fold()`. \ No newline at end of file +Finish implementing `count()`, given in the starter code, using `fold()`. diff --git a/Functional Programming/Folding Lists/Exercise 3/task.md b/Functional Programming/Folding Lists/Exercise 3/task.md index 80bcc411..2df35a8a 100644 --- a/Functional Programming/Folding Lists/Exercise 3/task.md +++ b/Functional Programming/Folding Lists/Exercise 3/task.md @@ -1,3 +1,3 @@ ## Folding Lists (#3) -Implement `any()` using `fold()`. \ No newline at end of file +Implement `any()` using `fold()`. diff --git a/Functional Programming/Folding Lists/Exercise 4/task.md b/Functional Programming/Folding Lists/Exercise 4/task.md index 444a3473..256fb8f2 100644 --- a/Functional Programming/Folding Lists/Exercise 4/task.md +++ b/Functional Programming/Folding Lists/Exercise 4/task.md @@ -3,5 +3,5 @@ The starter code provides a `Condition` class and a function `Condition.combine()` that combines two conditions. There's also a skeleton for the `List` extension function `combineAll()` that combines all -the conditions in the `List`. Complete the implementation using `reduce()`, -assuming the `List` is non-empty. \ No newline at end of file +conditions in the `List`. Complete the implementation using `reduce()`, +assuming the `List` is non-empty. diff --git a/Functional Programming/Higher-Order Functions/Exercise 1/task.md b/Functional Programming/Higher-Order Functions/Exercise 1/task.md index 5b68e1c3..d39242ca 100644 --- a/Functional Programming/Higher-Order Functions/Exercise 1/task.md +++ b/Functional Programming/Higher-Order Functions/Exercise 1/task.md @@ -1,3 +1,3 @@ ## Higher-Order Functions (#1) -Implement the `List.map()` function from scratch. \ No newline at end of file +Implement the `List.map()` function from scratch. diff --git a/Functional Programming/Higher-Order Functions/Exercise 2/task.md b/Functional Programming/Higher-Order Functions/Exercise 2/task.md index 05b16a24..a1242dd0 100644 --- a/Functional Programming/Higher-Order Functions/Exercise 2/task.md +++ b/Functional Programming/Higher-Order Functions/Exercise 2/task.md @@ -5,4 +5,4 @@ Rewrite the following function using a single call to `mapNotNull()`: ```kotlin fun List.transform(): List = filter { it % 2 == 0 }.map { it * it } -``` \ No newline at end of file +``` diff --git a/Functional Programming/Higher-Order Functions/Exercise 3/task.md b/Functional Programming/Higher-Order Functions/Exercise 3/task.md index f5ff17e5..818dfe7d 100644 --- a/Functional Programming/Higher-Order Functions/Exercise 3/task.md +++ b/Functional Programming/Higher-Order Functions/Exercise 3/task.md @@ -8,4 +8,4 @@ Note the generic types `R?` (in `(Int, T) -> R?`) and `List`. The `?` in `R?` means the lambda's return type is nullable. `mapIndexedNotNull()` returns a list of non-nullable elements, so the function return type is `List`. To express that `R` is a non-nullable type, we specify a *constraint* on the -generic type parameter: `R: Any`. \ No newline at end of file +generic type parameter: `R: Any`. diff --git a/Functional Programming/Higher-Order Functions/Exercise 4/task.md b/Functional Programming/Higher-Order Functions/Exercise 4/task.md index d1e3de55..cc1fed3c 100644 --- a/Functional Programming/Higher-Order Functions/Exercise 4/task.md +++ b/Functional Programming/Higher-Order Functions/Exercise 4/task.md @@ -3,4 +3,4 @@ Implement `andThen()` to combine the actions of two functions. `f.andThen(g)` returns a new function that first applies `f` and then applies `g` to the result: `{arg -> g(f(arg))}`. Define `andThen()` as an extension function on a -function type. \ No newline at end of file +function type.