Is there any better syntax I could be using to reduce verboseness? For example, I know the [] is the "capture" but not sure how to use it or if it is applicable here.
I just want to be able to do various things to the final value, such as set bounds, set a min or max, sometimes I also need to round to the nearest power of 2, sometimes I need to add or subtract from the value, and I'd like to do all that in the function input. There's no pattern to what I need to do, so I can't exactly pre-define the functions.