I'd like to find a fast but readable way to achieve the following:
Cases[RandomInteger[{AbsoluteTime["2001"], AbsoluteTime["2003"]}, 1000],
a_ /; a > AbsoluteTime["2002"]]
The correct result can be achieved much faster using with
:
With[{d = AbsoluteTime["2002"]},
Cases[RandomInteger[{AbsoluteTime["2001"], AbsoluteTime["2003"]}, 1000],
a_ /; a > d]]
But this is not very readable. Is there a more readable way?