Nate Cook
eb93e564d4
Add Sequence.randomElement()
...
The stdlib's randomElement() method extends Collection, since it
operates by selecting a random index. This adds randomElement() as
a Sequence method, specializing the reservoir sampling algorithm
from randomSample(count:) for a count of 1.
2022-03-07 18:17:41 -06:00
..
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2022-02-23 13:07:19 -06:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-06-01 10:14:34 -05:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-12-04 00:25:02 -06:00
2021-12-16 07:10:17 -06:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2022-03-07 18:17:41 -06:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00
2021-09-09 01:01:36 +02:00