Inlined make-sequence, per code review.