]>
git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch13-functional-features/listing-13-08/src/main.rs
23 let mut sort_operations
= vec
![];
24 let value
= String
::from("by key called");
26 list
.sort_by_key(|r
| {
27 sort_operations
.push(value
);
30 println
!("{:#?}", list
);