min - Returns the minimum element, optional ordering argument?
max - Returns the maximum element, optional ordering argument?
size - Returns the size of the collection
sum - Returns the sum of the collection elements, optional Function argument to extract value to sum?
avg - Returns the average of the collection elements, optional Function argument to extract value to average?
Note though, that it would be nice if we could add the functions to specific collection types only i.e. use a receiver type of Collection[UserType] so that the function is only available for types that really support this.
This kind of also depends on https://github.com/Blazebit/blaze-expression/issues/30
When https://github.com/Blazebit/blaze-expression/issues/28 is done, we can introduce some special collection instance functions like the following:
any
- Returns any elementmin
- Returns the minimum element, optional ordering argument?max
- Returns the maximum element, optional ordering argument?size
- Returns the size of the collectionsum
- Returns the sum of the collection elements, optional Function argument to extract value to sum?avg
- Returns the average of the collection elements, optional Function argument to extract value to average?Note though, that it would be nice if we could add the functions to specific collection types only i.e. use a receiver type of
Collection[UserType]
so that the function is only available for types that really support this. This kind of also depends on https://github.com/Blazebit/blaze-expression/issues/30