This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #lang racket | |
| (module foo racket | |
| (define x 3) | |
| (provide x)) | |
| (local-require (submod "." foo)) | |
| (displayln x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require: unknown module module name: #<resolved-module-path:'foo> |
NewerOlder