omori-Sakuya

2023年7月5日

有状态的迭代器

摘要: 实践为先,先写个错误代码 function iter_pro (arr,b) local index = 0 return function () index = index + 1 if arr[index] then return arr[index] end end end a={1,2,3, 阅读全文

posted @ 2023-07-05 11:22 omori_Sakuya 阅读(8) 评论(0) 推荐(0) 编辑

导航