---
schema_version: "1"
id: 43f5e9142a1c64553edf73ad95a7f47916b72c3b8f0844027ec573740c21ea8d
title: drop
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-arrays-functions-drop.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-arrays-functions-drop
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7dc8178e3d7c3e22021cacb718a7e1dda8e67d4aaa3d44eb7ae7e46d565e2584
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# drop

## [](#drop1)drop(Array<T>, Number): Array<T>

最初の ​`n`​ 個の要素をドロップします。​`n <= 0`​ の場合は元の配列を返し、​`n > sizeOf(array)`​ の場合は空の配列を返します。

_DataWeave 2.2.0 で導入されました。Mule 4.2 以降でサポートされます。_​

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

<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>array</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">要素の左配列。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>n</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">取り除く要素の数。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、入力配列の 3 番目の要素のみを含む配列を返します。最初の 2 個の要素は出力からドロップされます。

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

```DataWeave
 %dw 2.0
 import * from dw::core::Arrays
 var users = ["Mariano", "Leandro", "Julian"]
 output application/json
 ---
 drop(users, 2)
```

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

```json
[
  "Julian"
]
```