How would one implement a function that started with an int, and subtracted 1 from it for every time (going through a finite number of possibilities) one of several (for example, 5) boolean values returned 1.
How this would ideally look look is:
function list1 list2 = num
where
num = 4
- (condition from var1 = true)
- (condition from var2 = true)
- (so on, so forth as long as needed)
I have tried implementing these lines similarly to:
num = startVal
- (list1conditional == desiredVal)
- (etc)
But this is returning type errors.