fn parse_max_distance(named: &[(String, RValue)], pattern_len: usize) -> usizeExpand description
Parse R’s max.distance argument for agrep/agrepl.
R accepts either a single numeric (fraction of pattern length if < 1, absolute if >= 1)
or a named list. We support the simple numeric case.