element list. Valid input looks like '00:00:03.417'."
(let ((match (regexp-exec regexp s)))
(if match
- (map (cut match:substring match <>) '(1 2 3 4))
+ (map (compose string->number (cut match:substring match <>))
+ '(1 2 3 4))
(error "Invalid SubRip timestamp: " s))))))
(define parse-time-span
(and (string-null? line)
;; A subtitle may be a blank line!
(not (null? lines))))
- lines
+ (reverse lines)
(loop (cons line lines)))))))
(make-subtitle id start end lines)))