<div class="gmail_extra">> <span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">(? P) => (lambda (x) (match x [P true] [_ false]))</span></div><div class="gmail_extra">
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra"><font face="arial, sans-serif">I like this quite a bit. </font><span style="font-family:arial,sans-serif">It wouldn't be crazy to add it as match-pred(icate) right next to match-lambda, match-let, and friends (</span><a href="http://docs.racket-lang.org/reference/match.html?q=match&q=match-pred#(form._((lib._racket/match..rkt)._match-lambda))">http://docs.racket-lang.org/reference/match.html?q=match&q=match-pred#(form._((lib._racket/match..rkt)._match-lambda))</a>)<span style="font-family:arial,sans-serif">.</span></div>
<div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">Then, for rackunit, it's just up to how much we like writing</font></div><div class="gmail_extra">
<font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">(check-match foo P)</font></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra">
<font face="arial, sans-serif">vs.</font></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">(check-pred (match-pred P) foo)</font></div><div class="gmail_extra">
<font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">Both seem handy to me.</font></div>