Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nbirillo committed Sep 28, 2024
1 parent c26bcc6 commit 1c55295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions culinaryServer/culinaryServerTask1/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ Consider examples for both scenarios. Imagine generating a sequence of spices fo
We could use the [`generateSequence`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/generate-sequence.html) function with a condition:

```kotlin
val species = generateSequence{ shelfWithSpecies.getNextValidOne(...) }
val spices = generateSequence{ shelfWithSpices.getNextValidOne(...) }
```

In this case, the `spices` aren't actually retrieved until needed. Each time the next jar of spices is required, `shelfWithSpecies.getNextValidOne(...)` is called.
In this case, the `spices` aren't actually retrieved until needed. Each time the next jar of spices is required, `shelfWithSpices.getNextValidOne(...)` is called.
For example, if we need to add 3 different spices to the soup, this process will be as follows:

![Current state](TODO: a picture where we get and handle each piece step by step)
Expand Down

0 comments on commit 1c55295

Please sign in to comment.