jackfirth / racket-mock

Mocking library for Racket
Other
22 stars 7 forks source link

Add `define/arguments` and `lambda/arguments` #122

Closed jackfirth closed 7 years ago

jackfirth commented 7 years ago

These should make it easy to define functions that accept arbitrarily many positional / keyword args:

(define/arguments (foo args)
  (arguments? args))

(foo 1 2 3 #:foo 'bar) ; returns #t