(declare (block) (standard-bindings) (extended-bindings))
(begin
  (define std/srfi/41-iter#:iter::stream-t
    (lambda (_s504_) (std/srfi/41-iter#in-stream _s504_)))
  (std/generic/dispatch#generic-bind!
   std/iter#:iter::t
   (cons (std/generic/dispatch#type-linearize-class std/srfi/41#stream-type)
         '())
   std/srfi/41-iter#:iter::stream-t)
  (define std/srfi/41-iter#in-stream
    (lambda (_s406_)
      (letrec ((_next408_
                (lambda (_it410_)
                  (let* ((_it411417_ _it410_)
                         (_E413421_
                          (lambda () (error '"No clause matching" _it411417_)))
                         (_K414429_
                          (lambda (_e424_)
                            (if (std/srfi/41#stream-pair? _e424_)
                                (let ((_first426_
                                       (std/srfi/41#stream-car _e424_))
                                      (_rest427_
                                       (std/srfi/41#stream-cdr _e424_)))
                                  (##direct-structure-set!
                                   _it410_
                                   _rest427_
                                   '1
                                   std/iter#iterator::t
                                   '#f)
                                  _first426_)
                                std/iter#iter-end))))
                    (if (let ()
                          (declare (not safe))
                          (##structure-direct-instance-of?
                           _it411417_
                           'std/iter#iterator::t))
                        (let* ((_e415432_
                                (let ()
                                  (declare (not safe))
                                  (##vector-ref _it411417_ '1)))
                               (_e435_ _e415432_))
                          (_K414429_ _e435_))
                        (_E413421_))))))
        (let ((__obj4103 (make-object std/iter#iterator::t '3)))
          (std/iter#iterator:::init!__0 __obj4103 _s406_ _next408_)
          __obj4103)))))
