Skip to content

Instantly share code, notes, and snippets.

#lang racket
(require racket/generic)
;; ---------------------------------------------------------------------------------------------------
;; An iterator is a structure that actually implements iteration over some iterable sequence. The
;; iterator method of gen:iterable fetches an iterator to be used in iteration.
(define-generics iterator
#lang racket
(module foo racket
(define x 3)
(provide x))
(local-require (submod "." foo))
(displayln x)
require: unknown module module name: #<resolved-module-path:'foo>