-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
42 lines (29 loc) · 963 Bytes
/
repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{{alias}}( iterator[, out][, mapFcn[, thisArg]] )
Creates (or fills) an array from an iterator.
When invoked, an input function is provided two arguments:
- value: iterated value.
- index: iterated value index (zero-based).
If provided an output array, the function fills the output array with
iterated values.
Iteration stops when an output array is full or an iterator finishes;
whichever comes first.
Parameters
----------
iterator: Object
Source iterator.
out: ArrayLikeObject (optional)
Output array-like object.
mapFcn: Function (optional)
Function to invoke for each iterated value.
thisArg: any (optional)
Execution context.
Returns
-------
out: ArrayLikeObject
Output array.
Examples
--------
> var opts = { 'iter': 10 };
> var arr = {{alias}}( {{alias:@stdlib/random/iter/randu}}( opts ) )
See Also
--------