Skip to content

Commit

Permalink
Update task.md
Browse files Browse the repository at this point in the history
language in hints checked
  • Loading branch information
stephen-hero authored Dec 23, 2023
1 parent 7406183 commit a5a9a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordsGeneratorServer/wordsGeneratorServerTeamService/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ If you have any difficulties, **hints will help you solve this task**.

<div class="hint" title="Click me to learn how to generate a list with teams">

As was mentioned in the first module, you can generate a new list with `N` elements by the following construction:
As was mentioned in the first module, you can generate a new list with `N` elements using the following construct:
```kotlin
List(N) { Team() }
```
</div>

<div class="hint" title="Click me to learn about the putIfAbsent built-in function">

If you work with a `map`, you can use the built-in `putIfAbsent` function to add a new value if it is absent in the `map`:
When working with a `map`, you can use the built-in `putIfAbsent` function to add a new value if it is not present in the `map`:
```kotlin
val myMap = mutableMapOf<Int, String>()
if (1 !in myMap.keys) {
Expand Down

0 comments on commit a5a9a55

Please sign in to comment.