TakeWhile[{1, 2, 3, 4, 5}, # > 3 &] gives me {}.
Similarly LengthWhile[{1, 2, 3, 4, 5}, # > 3 &] gives me 0.
I don't know what is going wrong here. Why is Greater not working with TakeWhile and LengthWhile?
I am using Mathematica 10.0.2.
Selectis what your after, andCountfor "length"... $\endgroup${}button above the edit window. The edit window help button?is also useful for learning how to format your questions and answers. $\endgroup$