I have a function called or
for example, which is defined as;
or(filters: FilterDefinition*)
And then I have a list:
List(X, Y, Z)
What I now need to do is call or
like
or(func(X), func(Y), func(Z))
And as expected the length of the list may change.
What's the best way to do this in Scala?