Remove inner-most dimension

unbracket(x)

Arguments

x

Array symbol to collapse dimension from

Examples

if (has_sympy()) {
  x <- as_sym(paste0("x", 1:3))
  y <- as_sym("y")
  l <- list(x, y)
  l
  unbracket(l)
}
#> c: [x₁  x₂  x₃  y]ᵀ