Idiomatic snippets


Hello Developers
I set up a website about how one would perform common programming tasks in the most idiomatic form in different languages. It is intended to be didactic, it’s open to contributions (like a wiki) and I’d love to have more snippets written in RUST.
It would hugely help if a few of you picked a random idiom statement :
and clicked [(+) New implementation…] to write a RUST implementation. Most often, 2 lines suffice.

As you can see in the language coverage page, we don’t have many Rust impl yet (click >> to reveal more than the 12 first langs).
You’re also very welcome to add new idioms, as long as it’s not rust-specific, not tied to a library, and not a complex algorithm.
UI works fine but is not perfect yet, so any feedback is also welcome.



Broken link:


Thanks Stebalien! I fixed it.


Thanks to your efforts, Rust quickly jumped to become the 7th most populated language on the site. Great!!


I want to honestly thank you for that website.


I’ve added a bunch of snippets yesterday and today, most with a link to If you think any of my entries are not idiomatic, feel free to change them :slight_smile:


I did not link to, shame on me.