qt6-bb10/qtdeclarative/tests/auto/qml/qmlformat/data/arrowFunctions.qml

6 lines
91 B
QML

Item {
arrow1: (x) => x
arrow2: (x) => x + x
arrow3: () => x > 3 ? x * x : x
}