<div><span style="font-size: 14px; line-height: 1.5;">I wonder if Function call is better than Case when both of they can implement the target I want?</span></div><div>It seems like  write a function instead of case could make the code more clear .</div><div>But which one is fast when it running?<span style="line-height: 1.5; font-size: 14px;"> </span></div><div>I intend to change the case to function to make the code more clear. Is this valuable?</div>