将字符串阵列转换为二头肌

发布于 2025-01-25 12:11:14 字数 433 浏览 2 评论 0 原文

我希望能够将阵列转换为字符串,我二头肌

可以说我有一个数组:

    param arraytest array = [
    'numberOne'
    'numberTwo'
    ]

我希望能够将此数组转换为字符串,当我将数组测试放在新数组中时,只有字符串除外,它不会

如此抱怨:

    destination: [
    arraytest 
    'numberThree'
    ]

I would like to be able to convert an array to strings i bicep

Let say i have an array:

    param arraytest array = [
    'numberOne'
    'numberTwo'
    ]

I would like to be able to convert this array to strings, så when i put the arraytest in a new array, that only excepts strings, it will not complain

so like this:

    destination: [
    arraytest 
    'numberThree'
    ]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江湖彼岸 2025-02-01 12:11:14

我认为您正在寻找的是Concat功能。

var destination = concat(arraytest, [
'numberThree'
])

I think what you are looking for is the concat function.

https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-array#concat

var destination = concat(arraytest, [
'numberThree'
])
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文