function populateWithKeywordsAndIds(list) { for (let i = 0; i < list.length/firstJSONWritten.js', newList); return newList;在我运行这个之后,firstJSONWritten.js是一个空文件。
我正在编写一个包含一对列表的函数,如果两个列表的长度相等,那么从每个列表中创建一对元素,但是我的函数不能工作,编译器说有语法错误let define_tuple a b =if List.length (fst (a, b)) != List.length (fst (a, b)) printf_string "lengths of 2 lists need to be equal