Created
January 30, 2020 22:05
-
-
Save schinns/5929afed62ef34de3cdf509cb3669576 to your computer and use it in GitHub Desktop.
BSL predicates and conditional expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define in "juiceba") | |
(define (converter data) ( | |
cond | |
[(string? data) (string-length data)] | |
[(boolean? data) (if data 10 20)] | |
)) | |
(converter in) | |
(converter #true) | |
(converter #false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment