---
title: .min()
slug: exqD-min
docTags: 
createdAt: 2021-09-14T18:35:52.000Z
---

Returns the smallest value of a [Sequence](docId\:JG4itlQWafzLpArttFo67) or [List](docId\:xWH_cUkHj9waqaEfb7H71), optionally evaluating an expression.

### Syntax

`.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.

### Examples

- `[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.

