This constructs a lens into the first n elements
of an object or the if negative indexing is used,
as many as length(x) - n.
take_l(n)
| n | number of elements to take, or if negative the number of elements at the end to not take. |
|---|
#> [1] 1 2 3#> [1] 1 2 3#> [1] 100 200 3 4 5 6 7 8 9 10#> [1] 100 200 3 4 5 6 7 8 9 10