powered by
This function encloses a string with specified characters on the left and the right.
enclose(x, left, right)
A new character string with x enclosed by left and right.
x
left
right
A character string to enclose.
A character string to prepend.
A character string to append.
enclose("text", "[", "]") # returns "[text]"
Run the code above in your browser using DataLab