-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
42 lines (30 loc) · 977 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}}( x )
Converts an array-like object to an object likely to have the same "shape".
The returned object has the following properties:
- data: data buffer.
- accessorProtocol: boolean indicating whether the data buffer uses
accessors for getting and setting elements.
- accessors: a two-element array whose first element is an accessor for
retrieving an array element and whose second element is an accessor for
setting an array element.
The getter accessor accepts two arguments:
- data: data buffer.
- idx: element index.
The setter accessor accepts three arguments:
- data: data buffer.
- idx: element index.
- value: value to set.
Parameters
----------
x: ArrayLikeObject
Input array.
Returns
-------
out: Object
Object containing array data.
Examples
--------
> var out = {{alias}}( [ 1, 2, 3, 4 ] )
{...}
See Also
--------