std::convert::identity is one of my fave parts of stdlib. Too small to be a crate. Used often enough to make it into std. https://doc.rust-lang.org/std/convert/fn.identity.html …
-
-
That's what I suggested originally when I proposed the function. :) I still think it would be convenient to add it to prelude.
-
Heh, yeah for sure. Feels similar to smth like dbg!() / todo!(); small, useful, and great to have available in just a few keystrokes.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.