Skip to content

Added distinct() function to systemNameSpace and updated baselines - Do not merge#19167

Draft
Likhithakmsft wants to merge 1 commit intomainfrom
feature/distinct_function_new
Draft

Added distinct() function to systemNameSpace and updated baselines - Do not merge#19167
Likhithakmsft wants to merge 1 commit intomainfrom
feature/distinct_function_new

Conversation

@Likhithakmsft
Copy link

@Likhithakmsft Likhithakmsft commented Mar 10, 2026

Description

Adds support for the distinct() built-in function in bicep .
The function returns a new array containing only the unique elements from the input.

Example Usage

var values = [1, 2, 2, 3, 1]
var uniqueValues = distinct(values)

output = [1, 2, 3]

Checklist

Microsoft Reviewers: Open in CodeFlow

@github-actions
Copy link
Contributor

Test this change out locally with the following install scripts (Action run 22915018787)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 22915018787
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 22915018787"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 22915018787
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 22915018787"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants