Re: [racket-users] Re: Contract for function of either one or two arguments?

2017-08-24 Thread Greg Hendershott
> I've run into this multiple times as well, and would like someone (maybe me) > to write a package (maybe named `sugar-contract`) that provides this. It would be neat, at least, to be able to use same double ellipsis notation as in defproc and as we read in the documentation: (-> hash? any/c

[racket-users] Re: Contract for function of either one or two arguments?

2017-08-24 Thread Jack Firth
> I want to be able to say "the rest argument is a list that has an even number > of elements and more than zero elements", but I'm not sure how to capture > that.  Thoughts? I've run into this multiple times as well, and would like someone (maybe me) to write a package (maybe named