take()

The take linq operator returns a new linq object that contains the first "count" number of elements from the collection. If "count" is greater than the number of elements in the collection, then all of the elements in the collection
will be contained in the results.

takeWhile()

The takeWhile linq operator returns a new linq object that contains the largest set of elements taken from the beginning of the collection that all statisfy the given "predicate" function. In other words, elements are chosen from the beginning
of the collection until an element is encountered that does not satisfy the predicate.