GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2022-10-24 13:34:05

gnysek
Member
Registered: 2011-12-29
Posts: 36

array_create_2d (2022.11+)

Expand/// @param {Real} rows
/// @param {Real} cols
/// @param {Any*} value Default value
/// @returns {Array<Array<Any*>>)
function array_create_2d(rows, cols, value) {
    return array_create_ext(rows, method({c: cols, v: value}, function() {
        return array_create(c, v);
    }));
}

Last edited by gnysek (2022-10-28 12:00:17)

Offline

Board footer

Powered by FluxBB