range function

MatchCase<num> range(
  1. num from,
  2. num to
)

Implementation

MatchCase<num> range(num from, num to) {
  return (n) => n >= from && n <= to;
}