Skip to content

Instantly share code, notes, and snippets.

@greghendershott
Created August 6, 2018 14:42
Show Gist options
  • Save greghendershott/9906e5dd72a239d101116cfb85ba97df to your computer and use it in GitHub Desktop.
Save greghendershott/9906e5dd72a239d101116cfb85ba97df to your computer and use it in GitHub Desktop.
in-value exaple
#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