What I essentially want to do is keep folding an array from left to right with an operator, and then stopping what I hit a total so some number X.
for example:
foldl(+,[1,2,3,4,5,6],10)
I expect the results to be 10, or true. Basically anything that lets me know that somewhere in my fold I found the number 10.
Is there anything function currently in Julia that operates like this?