Take the first N items from a source
(Equivalent to takeWhile() with a function that checks the index is < n.)
Take the first N items from a source
(Equivalent to takeWhile() with a function that checks the index is < n.)