카타 8급 Expand a string

R[ | ]

R
Copy
expand <- function(s){
  strsplit(s,"")[[1]]
}
R
Copy
expand <- function(s){
  unlist(strsplit(s,""))
}
R
Copy
expand <- function(s){
  unlist(strsplit(s,NULL))
}