---
schema_version: "1"
id: 00e5f26475d13511ecc88af910fc914f6362c09e66098d6c473fdb22fcd2aa31
title: min
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-core-functions-min.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-core-functions-min
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b009b0f9b3f6962bdeffe115bd6382ee57865647f5f74184300e461627e2b937
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# min

## [](#min1)min<T <: Comparable>(@StreamCapable values: Array<T>): T | Null

配列内の最小の ​`Comparable`​ 値を返します。

項目のデータ型は同じである必要があります。同じでない場合、​`min`​ はエラーをスローします。配列が空の場合、関数は ​`null`​ を返します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>values</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">入力配列。配列の要素には、サポートされる任意のデータ型を使用できます。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、各入力配列の最小数値を返します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
output application/json
---
{ a: min([1, 1000]), b: min([1, 2, 3]), c: min([1.5, 2.5, 3.5]) }
```

#### [](#出力)出力

```JSON
{ "a": 1, "b": 1, "c": 1.5 }
```