Is it possible to separate the ... in a function in R?

Viewed 48

I have a simple function in R that uses .... Is is possible to separate the inputs?

simple_paste <- function(...){
  paste0(..., collapse = "_x_")
}

simple_paste("hello", "world")

As an output, instead of "helloworld" I would like "hello_x_world"

0 Answers
Related