Example - Return multiple values from a function in SE

stable
By pshai in Miscellaneous Published November 2020 👁 986 views 💬 0 comments

Description

Example - Return multiple values from a function in SE
HaasScript
function getTuple(x, y)
    return x, y
end

local x, y = getTuple(10, 40)

Log(x) -- output: 10
Log(y) -- output: 40

0 Comments

Sign in to leave a comment.

No comments yet. Be the first!