---
schema_version: "1"
id: 7740af4bf03ce32fa202bbe914864381733ea2055cd6825fa253799d10ee58de
title: unzip
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-core-functions-unzip.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-core-functions-unzip
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ffab97e7e328bce2624105959f99dd9272b251c2d0975a163e606507c4be7336
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# unzip

## [](#unzip1)unzip<T>(items: Array<Array<T>>): Array<Array<T>>

`zip`​ の逆の操作を実行します。これは、配列の配列を入力として使用します。

この関数は、一致するインデックスで入力サブ配列の値をグループ化し、その一致するインデックスの値を含む新しいサブ配列を出力します。一致しないインデックスのサブ配列は生成されません。たとえば、1 つの入力サブ配列に 4 つの要素 (インデックス 0 ～ 3) が含まれ、別の入力サブ配列に 3 つの要素 (インデックス 0 ～ 2) のみが含まれる場合、この関数はインデックス 3 の値のサブ配列を生成しません。

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

<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>items</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">配列の入力配列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、配列の配列を展開します。各サブ配列の 1 番目のインデックスを 1 つの配列 ​`[ 0, 1, 2, 3 ]`​ に出力し、各サブ配列の 2 番目のインデックスを別の配列 ​`[ "a", "b", "c", "d" ]`​ に出力します。

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

```DataWeave
%dw 2.0
output application/json
---
unzip([ [0,"a"], [1,"b"], [2,"c"],[ 3,"d"] ])
```

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

```JSON
[ [ 0, 1, 2, 3 ], [ "a", "b", "c", "d" ] ]
```

### [](#例-2)例

次の例では、配列の配列を展開します。入力配列の要素数がそれぞれ異なります。関数は可能な限り多くの完全なサブ配列を作成します。この場合は、1 つのみとなります。

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

```DataWeave
%dw 2.0
output application/json
---
unzip([ [0,"a"], [1,"a","foo"], [2], [3,"a"] ])
```

#### [](#出力-2)出力

```JSON
[0,1,2,3]
```