2 ms·
I often miss Ruby's 'tap' when writing Java. Happily, in Rust, it's easy enough to add yourself: https://play.rust-lang.org/?gist=d40d8ca9bd77bbd60626be727404a
by twic 9y ago
I often miss Ruby's 'tap' when writing Java. Happily, in Rust, it's easy enough to add yourself:
https://play.rust-lang.org/?gist=d40d8ca9bd77bbd60626be727404a69e&version=stable https://play.rust-lang.org/?gist=d40d8ca9bd77bbd60626be72740...
I only implement let and also from Kotlin, because Rust doesn't really have the idea of method receivers in quite the same way as Kotlin, so the others are pointless.