#Rust is weird:
```rs
let text = matches
.get_many::<String>("text")
.unwrap()
.map(|v| v.as_str())
.collect::<Vec<_>>();

```
collect::<Vec<_>>() ??? Looks strange for a Rust beginner.

Follow

@sbr Turbo fish for annotating type at call site and underscore for inference placeholder gives rise to this syntax.

When it comes to type level syntax there are just not many familiar precedents: C++, OCaml, Haskell, Scala, that’s it, and arguably only C++ is widely known.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.