Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ create_array
Function
create_array
Source Code/11-04.rs:13–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
const SIZE: usize = 100_000;
12
const N_ARRAY: usize = 1_000_000;
13
fn create_array() -> [u8; SIZE] { [0u8; SIZE] }
14
fn recursive_func(n: usize) {
15
let a = create_array();
16
println!(
"{} {}"
, N_ARRAY - n + 1, a[0]);
Callers
1
recursive_func
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected