Module Replicate

Inline replication of object references.

Module Status: Polishing.

Usage:

    local Replicate = require('__eradicators-library__/erlib/lua/Replicate')()
    

Functions

Twice(v) Returns two references to the given object.
Thrice(v) Returns three references to the given object.
FourtyTwo(v) Returns 42 references to the given object.
Replicate(n, v) Returns n references to the given object.


Functions

Twice(v)
Returns two references to the given object.

Parameters:

Usage:

    local A,B = Twice(f)
Thrice(v)
Returns three references to the given object.

Parameters:

Usage:

    local A,B,C = Thrice({})
FourtyTwo(v)
Returns 42 references to the given object. That should be enough for everyone.

Parameters:

Usage:

    local A,B,C,D,E,F,G = FourtyTwo(LuaEntity) --You don't have to catch 'em all.
Replicate(n, v)
Returns n references to the given object. For when you need precision.

Parameters:

Usage:

    local A,B,C,E,F,G = Replicate(6,LuaEntity)
generated by LDoc 1.4.6 Last updated 2021-09-10 19:51:19