Following up with my previous question (link here: Lua How to create custom function that can be used on variables?), is there a way to create the same kind of function that works for other things other than tables? For example,
str = "stuff"
letter = str:foo() --Maybe have the foo function extract the first letter?
Is there a way to create a function that works in the same way that
lowerCasestr = str:lower()
works?