Skip to content

.recursive_wrap

Shawn edited this page May 30, 2024 · 1 revision

Recursively wraps a string with specified opening and closing characters (.recursive_wrap)

This function recursively wraps a string with specified opening and closing characters. It returns a string that is recursively wrapped with the specified opening and closing characters.

Paramaters

  • str The string to be wrapped.
  • .open The opening character(s) for wrapping. Default is "(".
  • .close The closing character(s) for wrapping. Default is ")?".
  • return A string that is recursively wrapped with the specified opening and closing characters.

Usage

.recursive_wrap(str, .open = "(", .close = ")?")

Examples

ZekDex:::.recursive_wrap("Zekrom")
Clone this wiki locally