first-and-last (hackage): First and Last generalized to return up to n values
Keywords: bsd3|data|library