diff --git a/docs/images/reference/sequences/list-processing.png b/docs/images/reference/sequences/list-processing.png deleted file mode 100644 index 4b89066ac34..00000000000 Binary files a/docs/images/reference/sequences/list-processing.png and /dev/null differ diff --git a/docs/images/reference/sequences/list-processing.svg b/docs/images/reference/sequences/list-processing.svg new file mode 100644 index 00000000000..5ed9dd755f1 --- /dev/null +++ b/docs/images/reference/sequences/list-processing.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/reference/sequences/sequence-processing.png b/docs/images/reference/sequences/sequence-processing.png deleted file mode 100644 index 2e71bbe4047..00000000000 Binary files a/docs/images/reference/sequences/sequence-processing.png and /dev/null differ diff --git a/docs/images/reference/sequences/sequence-processing.svg b/docs/images/reference/sequences/sequence-processing.svg new file mode 100644 index 00000000000..dc9626e9a5c --- /dev/null +++ b/docs/images/reference/sequences/sequence-processing.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/topics/sequences.md b/docs/topics/sequences.md index 1ff352adab3..772786aedbe 100644 --- a/docs/topics/sequences.md +++ b/docs/topics/sequences.md @@ -144,7 +144,7 @@ the output of the two last lines. This is how the list processing goes: -![List processing](list-processing.png) +![List processing](list-processing.svg) ### Sequence @@ -177,6 +177,7 @@ When the result size reaches 4, the processing stops because it's the largest po The sequence processing goes like this: -![Sequences processing](sequence-processing.png) {width="700"} +![Sequences processing](sequence-processing.svg) {width="700"} -In this example, the sequence processing takes 18 steps instead of 23 steps for doing the same with lists. +In this example, the lazy processing of elements and stopping after finding four items reduces the number of operations +compared to using a list approach.