floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

683
active users

I am sure there is a better way than cloning the vector over and over again 🙈

Jan :rust: :ferris:

@akshay You will be surprised how easy this actually is in Rust (still needs to allocate a new vec, though):

results.into_iter().collect();

Playground (with some explanation):
play.rust-lang.org/?version=st

I don't know Haskell, but maybe this is like `traverse` in Haskell (I've seen you've talked about it in your prev toots)!?

play.rust-lang.orgRust PlaygroundA browser interface to the Rust compiler to experiment with the language