Carrot reference
Methods
.min()
.min()
- Returns the smallest numeric value in the Sequence or List.
.min{expression}
- Returns the smallest value, after evaluating the Carrot expression on each element of the Sequence or List.
- [1, 2, 3].min() returns 1
- [1, 2, 3].min{it * 3} returns 3
- db.job.find{dept:engineering}.min{baseComp} returns the smallest base compensation in the Engineering department.