|
You are here |
andrewshitov.com | ||
| | | | |
ostash.dev
|
|
| | | | | What is a higher order function(HOF)? If a function receives as its input one or more functions or/and returns the function we can called it HOF. | |
| | | | |
qsantos.fr
|
|
| | | | | This article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec, &Vec with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Example: [i32; 100]Allocated on the stack T[N]Example: int[100]Allocated on the stack &[T; N] (array reference)Example: &[i32; 100]N is tracked at ... Continue reading Rust Strings for C Programmers | |
| | | | |
andreasimonecosta.dev
|
|
| | | | | Let's try to clarify, once and for all, the true essence of type parameters. | |
| | | | |
rust.godbolt.org
|
|
| | | pub fn mid(data: &[i32]) -> Option { if data.is_empty() { return None; } return Some(data[data.len()/2]); } | ||