camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
123 stars 50 forks source link

duplicate values() doesn't work for context items #773

Closed saig0 closed 1 month ago

saig0 commented 10 months ago

Describe the bug The built-in function duplicate values() doesn't filter duplicates for a list of context items.

duplicate values([{x:1},{x:2},{x:1}])

To Reproduce Steps to reproduce the behavior:

  1. Evaluate the expression
    duplicate values([{x:1},{x:2},{x:1}])
  2. Verify that the result is an empty list

Expected behavior The function duplicate values() should find duplicates for a list of context items.

duplicate values([{x:1},{x:2},{x:1}])
// [{"x":1}]

Environment