diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2018-06-24 12:51:24 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2018-06-24 12:52:39 +0900 |
commit | 9a61542e8aadeb6bf6627c07364e24a226d00913 (patch) | |
tree | 92b6458ea2322f90734c1d4d0dcccc34b3959889 | |
parent | 7a2db4a1097a852288c0b782c32c166624cc26dc (diff) |
Add contract
-rw-r--r-- | main.rkt | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #lang racket +(require racket/contract) (require pict) (define CELL-SIZE 30) @@ -111,4 +112,4 @@ (define-values (result height-list) (pict-sexp/helper sexp '() (λ () (error "pict-sexp: implementation error")))) result) -(provide pict-sexp) +(provide/contract [pict-sexp (any/c . -> . pict?)]) |