Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gleam/list.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,7 @@ fn max_loop(list, compare, max) {
}

/// Returns a random sample of up to n elements from a list using reservoir
/// sampling via [Algorithm L](https://en.wikipedia.org/wiki/Reservoir_sampling#Optimal:_Algorithm_L).
/// sampling via [Algorithm L](https://en.wikipedia.org/wiki/Reservoir_sampling#Optimizing_running_time_by_skipping_elements).
/// Returns an empty list if the sample size is less than or equal to 0.
///
/// Order is not random, only selection is.
Expand Down
Loading