finite function

int finite(
  1. double x
)

Implementation

int finite(double x) => x.isFinite ? 1 : 0;