如何通过第一维组合三维数组列表?

时间:2017-10-04 17:00:26

标签: arrays r

我有一个3D数组列表,它们在第二和第三维中具有相同数量的元素,我需要转换为包含每个列表元素的单个3D数组。

作为一个可重复的例子:

    tns run ios
Searching for devices...
Executing before-liveSync hook from /Users/onols/Desktop/ClubiesApp/hooks/before-liveSync/nativescript-angular-sync.js
Executing before-prepare hook from /Users/onols/Desktop/ClubiesApp/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
app/tns_modules/@angular/animations/browser/src/render/animation_engine_next.d.ts(26,26): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

app/tns_modules/@angular/animations/browser/src/render/transition_animation_engine.d.ts(104,26): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
...
node_modules/nativescript-plugin-firebase/firebase.d.ts(703,48): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(705,62): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(707,58): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(760,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(762,29): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(766,47): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(768,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(770,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(772,27): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(774,56): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(776,42): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(778,57): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(780,31): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(782,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(784,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(786,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(794,35): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(797,91): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(799,94): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(801,40): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(804,97): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(807,67): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(810,57): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(812,61): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(814,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(816,57): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(818,46): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(820,50): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-plugin-firebase/firebase.d.ts(823,61): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/nativescript-toast/index.d.ts(8,25): error TS2300: Duplicate identifier ''long''.
node_modules/rxjs/Observable.d.ts(58,70): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/rxjs/operator/toPromise.d.ts(2,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/rxjs/operator/toPromise.d.ts(3,89): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(35,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(46,30): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(85,34): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(105,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(154,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(177,20): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/file-system/file-system.d.ts(183,53): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/tns-core-modules.d.ts(14,18): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/tns-core-modules.d.ts(19,58): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/animation/animation.d.ts(122,32): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/animation/keyframe-animation.d.ts(101,34): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(30,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(36,47): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(42,43): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(48,51): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(55,64): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(61,49): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(69,79): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(75,47): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(83,92): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(89,49): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(1354,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1374,124): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1375,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1381,16): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1540,32): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1541,38): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1542,64): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1544,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1546,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1555,32): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1556,29): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1558,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(1559,30): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(5788,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(5789,48): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7337,56): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7397,51): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7406,22): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7410,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7411,59): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7412,30): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7413,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7414,28): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7436,24): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7576,59): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7709,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7770,99): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(7771,103): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8251,109): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8411,67): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8482,23): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8483,35): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8598,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8599,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8610,19): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8626,41): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8952,24): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8953,61): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8954,55): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(8967,20): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9031,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9041,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9042,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(9267,132): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9270,118): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9271,144): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9275,136): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9278,144): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9279,145): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9385,17): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9386,19): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9533,21): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9534,45): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9536,68): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9572,69): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(9573,19): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(9574,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(11597,28): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(11973,72): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(11974,160): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(13312,169): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(13313,217): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(13513,20): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(13514,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(13515,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(13516,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(13517,17): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(13658,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(14655,182): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.dom.d.ts(14656,230): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.dom.d.ts(14687,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.iterable.d.ts(211,11): error TS2428: All declarations of 'Promise' must have identical type parameters.

node_modules/typescript/lib/lib.es2015.iterable.d.ts(220,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.iterable.d.ts(228,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(25,25): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(33,113): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(41,284): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(49,255): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(57,229): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(65,203): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(73,177): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(81,151): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(89,125): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(97,98): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(105,72): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(113,45): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(121,284): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(129,255): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(137,229): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(145,203): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(153,177): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(161,151): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(169,125): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(177,99): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(185,73): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(193,46): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(200,26): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.promise.d.ts(207,29): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(214,44): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).
node_modules/typescript/lib/lib.es2015.promise.d.ts(220,16): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts(168,11): error TS2428: All declarations of 'Promise' must have identical type parameters.

node_modules/typescript/lib/lib.es5.d.ts(1288,11): error TS2428: All declarations of 'Promise' must have identical type parameters.
node_modules/typescript/lib/lib.es5.d.ts(1295,211): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

node_modules/typescript/lib/lib.es5.d.ts(1302,112): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

Unable to apply changes on device: 30b9a1b5dc6b154e1ec801e7dcf5f15d1f8636fb. Error is: TypeScript compiler failed with exit code 1.
Building project...
Xcode build...
=== BUILD TARGET ClubiesApp OF PROJECT ClubiesApp WITH CONFIGURATION Debug ===
build-debug.xcconfig line 3: Unable to find included file "../plugins-debug.xcconfig"
=== BUILD TARGET ClubiesApp OF PROJECT ClubiesApp WITH CONFIGURATION Debug ===
error: could not read data from '/Users/onols/Desktop/ClubiesApp/platforms/ios/ClubiesApp/ClubiesApp-Info.plist': The file “ClubiesApp-Info.plist” couldn’t be opened because there is no such file.
** BUILD FAILED **

Unable to apply changes on device: 3887748A-6E73-4736-8D32-A439446C0352. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/onols/Desktop/ClubiesApp/hooks/after-watch/nativescript-dev-typescript.js

然后

m1 <- array(seq(1,12*5),c(3,4,5))
m2 <- array(seq(100,16*5+100),c(4,4,5))
RE <- list(m1, m2)

> m1[1,,]
     [,1] [,2] [,3] [,4] [,5]
[1,]    1   13   25   37   49
[2,]    4   16   28   40   52
[3,]    7   19   31   43   55
[4,]   10   22   34   46   58

我需要将其作为单个3D数组> m2[4,,] [,1] [,2] [,3] [,4] [,5] [1,] 103 119 135 151 167 [2,] 107 123 139 155 171 [3,] 111 127 143 159 175 [4,] 115 131 147 163 179 ,从M开始,以M[1,,] = m1[1,,]结尾。

1 个答案:

答案 0 :(得分:2)

使用abind()包中的abind函数可以更轻松。尝试

library(abind)
M <- abind(m1, m2, along=1)
# or, using the list
M <- do.call("abind", c(RE, along=1))