1 2 3 4 5 6 7 8 9 10
// Basic patch test - adding a method to str type patch($str, $exclaim, fn(self) { result = self; result << "!"; return result; }); message = "Hello"; result = message.exclaim(); print(result);