Matching polynomials.



Hello!

I have a polynomial

a1 x^m y^l + a2 y^k x^n + a3 x^h + ...

and I need to turn it into something like this:

a1 f(m, l) + a2 f(n, k) + a3 (h, 0) + ...

I need to match somehow expressions like x^m y^l

Are there any standard functions to help me?