Today's #Rust question: How do I write a function to tell whether all elements of an Vector are equal or not?
wow you guys submitted a lot of answers! so cool.
Here are 12 of them in a new playground https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=f57dc4c0fd2dcdd2241a97efba32c946
Ever wonder how to determine if a #Rust Vector has all equal elements or not?
Well, have I got a dozen answers to show you:
@schlink @jalcine I love how this is inherently TDD 😍
Octodon is a nice general purpose instance. more