Please sign in to comment.
Support for first(n)
This should Resolve #13. It uses the same pattern as Array#first that accepts an argument. The first `n` elements of the array are returned, each of them has the potential to raise an IndexError. Example: ```ruby arr = Fetching([1,2,3]) arr.first(2) => [1,2] arr.first(5) => IndexError: index 3 outside of array bounds: -3...3 ```
- Loading branch information...
Showing with 18 additions and 6 deletions.