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 阅读(9) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示