Hi, does anyone have an efficient `sequence-append*` function that takes a
sequence of sequences and returns the sequence that has all elements from
each, in order?

Here is my version. It works, but I'm wondering if there's a better way.

(require racket/generator)
;; (Sequenceof (Sequenceof A)) -> (Sequenceof A)
(define (sequence-append* seq-of-seq)
  (in-generator #:arity 1
    (for* ([seq seq-of-seq]
           [elem seq])
      (yield elem))))

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to