~nasser/8fl

fb06d6d7abd91abbf66aca366f59960065f5b2b3 — Ramsey Nasser a month ago f84ea29
Make table iterators resumable
1 files changed, 3 insertions(+), 3 deletions(-)

M seq.fnl
M seq.fnl => seq.fnl +3 -3
@@ 12,9 12,9 @@
   sequence"
  (match (type xs)
         :function xs
         :table (coroutine.wrap
                 #(each [_ x (ipairs xs)]
                   (coroutine.yield x)))
         :table (resumable
                  (each [_ x (ipairs xs)]
                    (coroutine.yield x)))
         :string (if (is-seq-sugar? xs)
                     (string.gmatch (string.sub xs 1 -2) ".")
                     (resumable (coroutine.yield xs)))