Summer1Solstice

扩展AutoHotkey原生对象

Array.Prototype.DefineProp("Join", { call: JOIN })
JOIN(this, sep := " ") {
    result := ""
    for i in this {
        if IsObject(i) {
            i := Type(i)
        }
        result .= i . sep
    }
    return RTrim(result, sep)
}
OutputDebug ["数", "组", "转", "字", "符", "串"].Join("")

如何扩展原始值,请看这里