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
require: unknown module module name: #<resolved-module-path:'foo> |
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 | |
(define x 3) | |
(provide x)) | |
(local-require (submod "." foo)) | |
(displayln x) |
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 | |
(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 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/base | |
(require racket/generic | |
(prefix-in base: racket/base) | |
(prefix-in base: racket/list)) | |
;; some simple interfaces — these are unchanged | |
;; --------------------------------------------------------------------------------------------------- | |
(define-generics iterator |
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 typed/racket/base | |
(require (for-syntax racket/base | |
racket/sequence | |
racket/syntax | |
syntax/parse | |
syntax/stx) | |
racket/match) | |
(begin-for-syntax |
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
module Pi where | |
import Data.List (genericLength) | |
import Control.Arrow (Arrow, (<<<), (***), arr) | |
import System.Random (newStdGen, randoms) | |
type Point a = (a, a) | |
chunk2 :: [a] -> [(a, a)] | |
chunk2 [] = [] |
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
function fish_prompt | |
set -l red (tput setaf 1) | |
set -l green (tput setaf 2) | |
set -l yellow (tput setaf 3) | |
set -l blue (tput setaf 4) | |
set -l magenta (tput setaf 5) | |
set -l cyan (tput setaf 6) | |
set -l lgray (tput setaf 7) | |
set -l gray (tput setaf 8) | |
set -l lred (tput setaf 9) |
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/base | |
(require (for-syntax racket/base | |
racket/syntax | |
syntax/parse) | |
racket/contract | |
racket/match) | |
(provide define-datatype) |
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/base | |
(require ffi/unsafe | |
ffi/unsafe/define | |
net/base64 | |
openssl/libcrypto | |
(rename-in racket/contract [-> ->/c]) | |
racket/match | |
racket/random | |
racket/string |
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/base | |
(require (for-syntax racket/base | |
racket/syntax | |
syntax/parse | |
syntax/transformer) | |
racket/lazy-require | |
racket/promise | |
racket/runtime-path) |
OlderNewer