AVSystem / scex

Extensible, fast and secure Scala expression evaluation engine
MIT License
21 stars 4 forks source link

Recover from UOE with ? operator #22

Closed bgrochal closed 1 year ago

bgrochal commented 1 year ago

JavaCollectionExtensions#CollectionOps methods like: min, minBy, max, maxBy throw UnsupportedOperationException for empty collections. This MR provides an ability to recover from such exception with CommonExpressionUtils#any2qmark.