How can this be automated? (Insert the elements of the array into the arguments of the function)
def func(d1: Boolean, d2: Boolean, d3: Boolean, d4: Boolean) = ???
val data = Array(true, true, false, false)
func(
data(0),
data(1),
data(2),
data(3)
)