You are assuming commutativity.  Should be operation(b, a).