I have the following function to construct a list. Problem is, the comparison against ... doesn't work. How can I do that?
#let list(..xs) = {
let xs = xs.pos()
for (i, x) in xs.enumerate() {
if i > 0 {
if xs.at(i - 1) == $...$ {
thin
} else {
$thin . thin$
}
}
x
}
}
$list(n_0, n_1, s) \
list(..., n_0, n_1, s) \
list(n_0, ..., n_m, s) \
list(n_0, n_1, ..., s) \
list(n_0, n_1, s, ...) \
list(n_0, ..., n_m, ..., s) \
list(..., n_0, n_1, s, ...) \
$