Skip to content

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

Closed
Likhithakmsft wants to merge 4 commits intomainfrom
feature/distinct_function
Closed

Added distinct() function to systemNameSpace and updated baselines - Do not merge#19166
Likhithakmsft wants to merge 4 commits intomainfrom
feature/distinct_function

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 22907623621)

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

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.

1 participant