Refactor functions into typeclass
Refactor functions into typeclass

wxzh/fcore,bixuanzju/fcore,zhiyuanshi/fcore,zhiyuanshi/fcore,hkuplg/fcore,bixuanzju/fcore,zhiyuanshi/fcore,xnning/fcore,bixuanzju/fcore,hkuplg/fcore,xnning/fcore,hkuplg/fcore,xnning/fcore,wxzh/fcore,wxzh/fcore