-
Notifications
You must be signed in to change notification settings - Fork 4
compute unzip
kgryte edited this page May 12, 2015
·
1 revision
Unzips a zipped array (i.e., a nested array
of tuples).
var arr = [ [1,'a',3], [2,'b',4] ];
var out = compute.unzip( arr );
// returns [ [1,2], ['a','b'], [3,4] ];
To unzip specific tuple elements, you can provide an array
of indices as an optional second argument.
var arr = [ [1,'a',3], [2,'b',4] ];
var out = compute.unzip( arr, [0,2] );
// returns [ [1,2], [3,4] ];
- Utilities
- Array Creation
- Sorting and Reshaping Arrays
- Special Functions
- Arithmetic
- Relational Operations
- Logical Operations
- Trigonometry
- Geometry
- Sets
- Discrete Mathematics
- Linear Algebra
- Statistics