-
-
Save ddeaguiar/8240420 to your computer and use it in GitHub Desktop.
Racket submodule example
This file contains 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 | |
(module bar typed/racket ;;submodules can leverage different languages | |
(provide baz three) | |
(define: three : Number 3) | |
(define (baz) '(foo bar baz)) | |
(define (bit) '(this is private)))) | |
(require (submod 'foo bar)) | |
(baz) | |
three |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment