Seems like maybe Mathematica 9 didn't have AllTrue[] function.
Anyway, I'm working with Pascal's triangle, trying to see if all members [except first/last] are divisible by the row number. I create a list or members, a list of divisibilities [evaluates to true/false].
But then I want to check the list of disvisibilities for ALL being True, which is what I'm really looking for.
So, I want to evaluate a variable that has a list of boolean true/false values and evaluate if all members are "true" [I suppose I could also evaluate if 'any' are False, but I'd prefer "all true"].
So, how would I go about that without the AllTrue[] function, which I'm guessing was added in a later revision?
Seems like this should be a fairly trivial thing? But not sure how to go about it?
I mean, I guess I could go the opposite route and say something like:
VariableNameHere=MemberQ[{ListNameVariable},False]
IE, check whether false is a member, in which case the entire list isn't divisible by the row number.
But I'd rather directly check that all members are True, as opposed to back@$$wardly checking whether any member is false.
So, is there some simpler way to check for "AllTrue" without the AllTrue[] function?