fn add<T>(a: T, b: T) -> T
where
T: std::ops::Add<Output = T>,
{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OCaml Code | |
```OCaml | |
let languages = "ocaml,Perl,C++,C";; | |
let dashed_language = | |
let language = String.split_on_char ',' languages in | |
String.concat "-" language;; | |
``` | |
#Rust Code | |
```rust |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
关于Map的使用在Rust中 | |