Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Add an array function $single() #348

Closed
jhorbulyk opened this issue Aug 16, 2019 · 1 comment
Closed

Proposal: Add an array function $single() #348

jhorbulyk opened this issue Aug 16, 2019 · 1 comment

Comments

@jhorbulyk
Copy link
Contributor

.NET's LINQ contains an operator .Single() which

Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.

It would be convenient if JSONata had a similar function.

This was referenced Aug 20, 2019
@andrew-coleman
Copy link
Member

Resolved by #355

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

No branches or pull requests

2 participants