genericTake

The genericTake function is an overloaded version of take, which accepts any Integral value as the number of elements to take.