PasteRack.org
Paste # 24288
2021-02-02 12:33:54

Forked from paste # 10452.

Fork as a new paste.

Paste viewed 389 times.


Embed:

  1. #lang racket
  2.  
  3. (require redex)
  4. (require pict)
  5.  
  6. (define-language L
  7.   (A number))
  8.  
  9. (define-metafunction L
  10.   fn : A -> A
  11.   [(fn A) A])
  12.  
  13. (define rendered (metafunction->pict fn #:contract? #t))
  14.  
  15. rendered
  16. (pict-descent rendered)

=>