f(x) => switch(x) { int() => 0 double() => 1 };