Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kibwen
· 2y ago · 0 comments
Indeed, in which case it looks much cleaner than specifying the length via the turbofish:
let bool_arr: [bool; 5] = ...
Comments
[–]
crznp
2y ago
That's true. As a relative novice to Rust, I'm familiar with array types, but I'd need to look up `from_fn`