func ExampleSample() { stream.Run( stream.Numbers(100, 200), stream.Sample(4), stream.WriteLines(os.Stdout), ) // Output not checked since it is non-deterministic. }
func BenchmarkSample(b *testing.B) { stream.Run( stream.Repeat("hello", b.N), stream.Sample(10), ) }