Scala's Function1 doesn't have a specialization on Char, which means that each char in a string that is evaluated is boxed. This causes unnecessary object allocations when refining values that are not statically known.
This PR fixes this issue by reimplementing these methods they are in the std library, but using an EvalChar argument instead which prevents boxing
Scala's Function1 doesn't have a specialization on
Char
, which means that each char in a string that is evaluated is boxed. This causes unnecessary object allocations when refining values that are not statically known.This PR fixes this issue by reimplementing these methods they are in the std library, but using an
EvalChar
argument instead which prevents boxing