Zig NEWS

Discussion on: How to make a function lookup table (LUT)

Collapse
 
ityonemo profile image
Isaac Yonemoto • Edited

This is for situations where you don't know the functions ahead of time: perhaps they need to be generated based on the index, perhaps the length of the array depends on the size of a datatype, e.g.

Yeah, perhaps that is not best described as "directly indexing".