]> git.lizzy.rs Git - rust.git/commit
Use fold in Iterator::last
authorChris Gregory <czipperz@gmail.com>
Sun, 7 Jul 2019 23:54:48 +0000 (16:54 -0700)
committerChris Gregory <czipperz@gmail.com>
Wed, 10 Jul 2019 04:26:49 +0000 (21:26 -0700)
commit76a8bc2473e60be35f96ecc268c6bb1d992ede78
tree167da42753ef916c4053a893ee33682116d4d221
parent481068a707679257e2a738b40987246e0420e787
Use fold in Iterator::last

Replace last impl with fold
src/libcore/iter/traits/iterator.rs