racket/collects/tests/plai/gc2/good-mutators/app.rkt
Robby Findler 9ffc18a000 adjust plai's gc2/mutator so that primitive applications are
special and primtives not in an application position is a syntax error
2012-02-24 08:15:03 -06:00

12 lines
186 B
Racket

#lang plai/gc2/mutator
(allocator-setup "../good-collectors/good-collector.rkt" 28)
(define (app f)
(lambda (x)
(f x)))
(define plus (app (λ (x) (add1 x))))
(plus 23)
(plus 5)