Add take method to collection class

Signed-off-by: Dries Vints <dries.vints@gmail.com>
Merge pull request #1989 from driesvints/feature/add-take-method-to-collection-class

Add take method to collection class