(coerce list 'vector) is a shorter way to do list-to-array.
The one-letter variable names are hard to follow.