typed-racket/typed-racket-test/succeed/function.rkt
2014-12-16 10:07:25 -05:00

14 lines
249 B
Racket

#lang typed/racket
;; Test imports from racket/function
(identity 5)
(identity (lambda (x) "test"))
((const 'foo) 1 2 3)
(filter (negate symbol?) '(1 a 2 b 3 c))
(map (negate equal?) '(1 2 3) '(1 1 1))
((curry (lambda (x y) (cons x y)) 5) '())