I frequently find myself thinking "this would be a great fit for prolog etc." but always fail when it comes to the execution.
That's easy:
thisWouldBeGreat: !, fail.