#[PrimiFunc]
    public static function find_first(StringValue $haystack, AbstractValue $needle): AbstractValue {

        // Allow only some value types.
        Func::allow_argument_types(1, $needle, StringValue::class, NumberValue::class);