drop-last returns a sequence with a specified number of elements removed from the end. With one argument, it removes the final element; with two arguments, n controls how many elements are omitted. section 10.2
Key behavior:
- Accepts a sequential collection and an optional numeric n; negative n behaves like zero. section 10.2
- Returns a fully lazy sequence, but does not provide a transducer arity. section 10.2
- Composes with sequence operations when the desired result is the input head without its tail. section 10.2
Lazy construction
Given a lazy sequence whose elements print when realized, (drop-last (xs)) produces a result without printing during construction. The returned sequence remains lazy until consumed.
