← 返回函数库

sortIndices

Array 内置函数 已实现

语法

sortIndices(...)

示例

attr x = sortIndices(...)

🎨 3D 预览 — 排序索引

@StartRule
Lot --> primitiveCube(4, 4, 4)
        print(sortIndices([3,1,4,1,5]))
        color(0.6, 0.7, 0.8)