結果 : determine function from table