I'm using nodeJS along with assemblyscript to test out webassembly. I tried writing a simple python style zip function hoping it would work as intended. But for some reason every time I hit compile, it throws an error with basically no description of why it breaks.
export function zip(list1:Array<string>, list2:Array<string>):string[][]{
return list1.map<string[]>((i:string,d:i32):string[] => [i, list2[d]])
}
Attaching image of the error message on compilation on running: yarn asbuild