update sugar/list with values->list
parent
3d3a227ff7
commit
5c1a4dc5fe
@ -1,13 +0,0 @@
|
|||||||
#lang racket/base
|
|
||||||
(require (for-syntax racket/base))
|
|
||||||
|
|
||||||
(provide (all-defined-out))
|
|
||||||
|
|
||||||
(define-syntax (values->list stx)
|
|
||||||
(syntax-case stx ()
|
|
||||||
[(_ values-expr) #'(call-with-values (λ () values-expr) list)]))
|
|
||||||
|
|
||||||
|
|
||||||
(define-syntax (apply-values stx)
|
|
||||||
(syntax-case stx ()
|
|
||||||
[(_ proc values) #'(apply proc (values->list values))]))
|
|
Loading…
Reference in New Issue