shortcuts-swift icon indicating copy to clipboard operation
shortcuts-swift copied to clipboard

An ActionContainer array should itself be an ActionContainer

Open a2 opened this issue 6 years ago • 1 comments

This would alleviate the need for the + operator.

Before:

let shortcut = buildShortcut(
    foo() +
    bar() +
    baz()
)

After:

let shortcut = buildShortcut([
    foo(),
    bar(),
    baz()
])

a2 avatar Dec 24 '18 11:12 a2

Not sure if this is actually even possible due to type constraint limitations.

a2 avatar Dec 24 '18 12:12 a2