FANDOM


Miscellaneous OperatorsEdit

EssentialsEdit

Miscellaneous operators are Operators that perform a task that cannot be categorized as the other three types.

Miscellaneous operator list.
.. # { } ( ) :x() [ ] .
Concatenation. Length. Table constructor. Function call. Method call. Table index. Table index string.

SamplesEdit

Sample
Sample of the length operator.

Source:

print(#('Hello World'))
print(#({'Hello', 'World'}))
Output:

11
2


Sample
Sample of the method call.

Source:

local a = {foo = function(b)
       return b
end}
print(a:foo())
Output:

table: 0x631210

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.