takeIf method

void takeIf(
  1. TakeIfFun fun
)

判断执行

Implementation

void takeIf(TakeIfFun fun){
  if(fun.call()) {
    this.call();
  }
}