Created
August 6, 2018 14:42
-
-
Save greghendershott/9906e5dd72a239d101116cfb85ba97df to your computer and use it in GitHub Desktop.
in-value exaple
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
#lang racket/base | |
(define (expensive-or-complicated v) | |
v) ;not really, but for example | |
(for*/list ([x (in-list '(1 2 3 4))] | |
[y (in-value (expensive-or-complicated x))] | |
#:unless (odd? y)) | |
y) | |
;; '(2 4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment