try to allow enumerate to accept functions with 0, 1 or 2 unnamed args