Re:Beautiful Binary Search in D
by skocznymroczny on Saturday February 18, 2023 @12:49PM
(#34849091)
Unless I am missing something, you can just use .length on a static array:
[ Parent
| on HN ]
Is that available at compile time, though?
Yes
Oh neat, I'm still a dlang noob and only used it in Crafting Interpreters :)
Re:Beautiful Binary Search in D
by alex_muscar on Saturday February 18, 2023 @02:16PM
(#34850074)
Someone on the D subreddit pointed that out as well. I didn't know it was available at compile time. I'll update the post. Thanks.