R/combinators.R
dot-refined.Rd
Restrict a type with a predicate
.refined(t, expr, env)
A type.
An unevaluated expression in ..
.
The environment the expression is evaluated in.
rdantic:::.refined(int, quote(. > 0), environment())(c(1, 2)) #> [1] 1 2