You want to pattern match on `Range[]` here so we get `FunctionClauseError` if no `Range[]` is given and record optimizations kicks in. `Range[first: first, last: last]` and `Range[] = range` both work.