Skip to content

Instantly share code, notes, and snippets.

@samth
Created December 20, 2011 15:41
Show Gist options
  • Select an option

  • Save samth/1501992 to your computer and use it in GitHub Desktop.

Select an option

Save samth/1501992 to your computer and use it in GitHub Desktop.
require/typed and keyword arguments
#lang racket/load
(module m racket
(define (f #:x x) x)
(provide f))
(module n typed/racket
(require/typed 'm
[f (#:x Any -> Any)])
(f #:x 3))
(require 'n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment