Linq
01 Syntax
Microsoft.VisualBasic.My.JavaScript.Linq
02 Methods
03 Members
reduce``2(
IEnumerable(Of ``0), Func(Of ``1, ``0, Int32, ``1), ``1)Type Parameters
| Name | Description |
|---|---|
T | 序列的类型 |
V | 序列进行降维之后的结果类型 |
Parameters
| Name | Type | Description |
|---|---|---|
seq | IEnumerable(Of ``0) | - |
produce | Func(Of ``1, ``0, Int32, ``1) | - |
init | ``1 | - |
reduce``2(
IEnumerable(Of ``0), Func(Of ``1, ``0, Int32, ``0(), ``1), ``1)Type Parameters
| Name | Description |
|---|---|
T | 序列的类型 |
V | 序列进行降维之后的结果类型 |
Parameters
| Name | Type | Description |
|---|---|---|
seq | IEnumerable(Of ``0) | - |
produce | Func(Of ``1, ``0, Int32, ``0(), ``1) | - |
init | ``1 | - |
reduce``2(
IEnumerable(Of ``0), Func(Of ``1, ``0, ``1), ``1)Type Parameters
| Name | Description |
|---|---|
T | 序列的类型 |
V | 序列进行降维之后的结果类型 |
Parameters
| Name | Type | Description |
|---|---|---|
seq | IEnumerable(Of ``0) | - |
produce | Func(Of ``1, ``0, ``1) | - |
init | ``1 | - |
reduce``1(
Array, Func(Of ``0, Object, Int32, ``0), ``0)Type Parameters
| Name | Description |
|---|---|
V | 序列进行降维之后的结果类型 |
Parameters
| Name | Type | Description |
|---|---|---|
seq | Array | - |
produce | Func(Of ``0, Object, Int32, ``0) | - |
init | ``0 | - |
reduce``1(
Array, Func(Of ``0, Object, ``0), ``0)Type Parameters
| Name | Description |
|---|---|
V | 序列进行降维之后的结果类型 |
Parameters
| Name | Type | Description |
|---|---|---|
seq | Array | - |
produce | Func(Of ``0, Object, ``0) | - |
init | ``0 | - |
pop``1(
``0())用于删除并返回数组的最后一个元素。
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
a | ``0() | - |
shift``1(
``0())用于把数组的第一个元素从其中删除,并返回第一个元素的值。
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
a | ``0() | - |
splice(
T(), Int32, Int32, T())findIndex(
T(), Predicate(Of T))map(
IEnumerable(Of T), Func(Of T, Int32, V))reduce(
IEnumerable(Of T), Func(Of V, T, Int32, V), V)sort(
IEnumerable(Of T), Comparison(Of T))pop(
T())shift(
T())