% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/internal.R
\name{.detect_first_present}
\alias{.detect_first_present}
\title{Detect the first present argument name in dots.}
\usage{
.detect_first_present(dots, candidates = c("q", "x"))
}
\description{
Detect the first present argument name in dots.
}
\details{
Some wrapped scalar functions accept either \code{q} or \code{x} as their first numeric
argument depending on the original API. This helper inspects \code{...} and returns
the first candidate name that is actually present so wrapper code can map user
input onto the target function signature.
}
\keyword{internal}
