Discussion about this post

User's avatar
Alex Pliutau's avatar

In quick_sort_s3_objects_by_date you can have 1 line of code instead of 9 by doing this:

let (less_than_pivot, greater_than_pivot) = objects.into_iter().partition(|object| object.last_modified.unwrap() <= pivot.last_modified.unwrap());

Expand full comment
Callendor's avatar

By Gandalf’s beard! -:)

Expand full comment
1 more comment...

No posts