HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by _nalply | Hacker News Reader
Parent
Full thread
_nalply
·
Or declare the type of bool_arr.
View on HN
kibwen
·
Indeed, in which case it looks much cleaner than specifying the length via the turbofish:
let bool_arr: [bool; 5] = ...
crznp
·
That's true. As a relative novice to Rust, I'm familiar with array types, but I'd need to look up `from_fn`
Reply on news.ycombinator.com