 | fillFillT Method (Int32, FuncT, Int32, NullableInt32) |
Creates an
Array and fills it with values.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static T[] Fill<T>(
int length,
Func<T> filler,
int start = 0,
Nullable<int> count = null
)
Parameters
- length
- Type: SystemInt32
The length of the resultant array. - filler
- Type: SystemFuncT
The function to generate filler elements. - start (Optional)
- Type: SystemInt32
The first index to be filled. - count (Optional)
- Type: SystemNullableInt32
The number of indices to be filled, or to continue filling to the end of the IListT.
Type Parameters
- T
- The type of the created array.
Return Value
Type:
TA new
Array of length
length, with values in the appropriated indices filled by
filler
See Also