We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f0037 commit 270cf31Copy full SHA for 270cf31
docs/src/index.md
@@ -50,17 +50,23 @@ also possible to iterate over a `StreamSample` like so
50
```julia
51
julia> using StreamSampling
52
53
-julia> iter = 1:100
+julia> iter = 1:100;
54
55
julia> ss = StreamSample{Int}(iter, 5, 100);
56
57
-julia> collect(ss)
+julia> r = Int[];
58
+
59
+julia> for x in ss
60
+ push!(r, x)
61
+ end
62
63
+julia> r
64
5-element Vector{Int64}:
- 7
- 9
- 20
- 49
- 74
65
+ 10
66
+ 22
67
+ 26
68
+ 35
69
+ 75
70
```
71
72
Consult the [API page](https://juliadynamics.github.io/StreamSampling.jl/stable/api) for more information about the package interface.
0 commit comments